Django

Code

Changeset 6853

Show
Ignore:
Timestamp:
12/02/07 17:26:01 (10 months ago)
Author:
mtredinnick
Message:

Fixed #5002 -- Fixed a small problem when running via pdb. Thanks, dummylink@gmail.com.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/core/management/__init__.py

    r6832 r6853  
    255255    # "myproject", this code would add "/path/to/myproject" to sys.path. 
    256256    project_directory, settings_filename = os.path.split(settings_mod.__file__) 
     257    if not project_directory: 
     258        project_directory = os.getcwd() 
    257259    project_name = os.path.basename(project_directory) 
    258260    settings_name = os.path.splitext(settings_filename)[0]