Ticket #9789: jython_settings.diff
File jython_settings.diff, 693 bytes (added by , 16 years ago) |
---|
-
django/core/management/__init__.py
312 312 project_directory = os.getcwd() 313 313 project_name = os.path.basename(project_directory) 314 314 settings_name = os.path.splitext(settings_filename)[0] 315 # Strip $py for Jython compiled files (like settings$py.class) 316 if settings_name.endswith("$py"): 317 settings_name = settings_name[:-3] 315 318 sys.path.append(os.path.join(project_directory, os.pardir)) 316 319 project_module = __import__(project_name, {}, {}, ['']) 317 320 sys.path.pop()