Django

Code

Changeset 3069

Show
Ignore:
Timestamp:
06/02/06 14:04:09 (2 years ago)
Author:
adrian
Message:

Fixed #2073 -- Improved 'manage.py shell' not to pass argv to IPython if it's installed. Thanks, jpellerin@gmail.com

Files:

Legend:

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

    r3003 r3069  
    10561056            raise ImportError 
    10571057        import IPython 
    1058         shell = IPython.Shell.IPShell() 
     1058        # Explicitly pass an empty list as arguments, because otherwise IPython 
     1059        # would use sys.argv from this script. 
     1060        shell = IPython.Shell.IPShell(argv=[]) 
    10591061        shell.mainloop() 
    10601062    except ImportError: