Ticket #5002: pdb.diff

File pdb.diff, 682 bytes (added by vitja <dummylink@…>, 8 years ago)
  • core/management.py

     
    17011701    # way. For example, if this file (manage.py) lives in a directory
    17021702    # "myproject", this code would add "/path/to/myproject" to sys.path.
    17031703    project_directory, settings_filename = os.path.split(settings_mod.__file__)
     1704   
     1705    if project_directory == '':
     1706        project_directory = os.getcwd()
     1707   
    17041708    project_name = os.path.basename(project_directory)
    17051709    settings_name = os.path.splitext(settings_filename)[0]
    17061710    sys.path.append(os.path.join(project_directory, '..'))
Back to Top