Django

Code

Changeset 6456

Show
Ignore:
Timestamp:
10/05/07 21:23:59 (9 months ago)
Author:
gwilson
Message:

Refs #5690 -- Changed path joining to use os.pardir instead of '..'.

Files:

Legend:

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

    r5907 r6456  
    1717        # Determine the project_name a bit naively -- by looking at the name of 
    1818        # the parent directory. 
    19         project_dir = os.path.normpath(os.path.join(directory, '..')) 
     19        project_dir = os.path.normpath(os.path.join(directory, os.pardir)) 
    2020        parent_dir = os.path.basename(project_dir) 
    2121        project_name = os.path.basename(directory) 
  • django/trunk/django/core/management/__init__.py

    r6404 r6456  
    240240    project_name = os.path.basename(project_directory) 
    241241    settings_name = os.path.splitext(settings_filename)[0] 
    242     sys.path.append(os.path.join(project_directory, '..')) 
     242    sys.path.append(os.path.join(project_directory, os.pardir)) 
    243243    project_module = __import__(project_name, {}, {}, ['']) 
    244244    sys.path.pop()