Ticket #5002: pdb.diff
File pdb.diff, 682 bytes (added by , 17 years ago) |
---|
-
core/management.py
1701 1701 # way. For example, if this file (manage.py) lives in a directory 1702 1702 # "myproject", this code would add "/path/to/myproject" to sys.path. 1703 1703 project_directory, settings_filename = os.path.split(settings_mod.__file__) 1704 1705 if project_directory == '': 1706 project_directory = os.getcwd() 1707 1704 1708 project_name = os.path.basename(project_directory) 1705 1709 settings_name = os.path.splitext(settings_filename)[0] 1706 1710 sys.path.append(os.path.join(project_directory, '..'))