Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #2073 -- Improved 'manage.py shell' not to pass argv to IPython…

… if it's installed. Thanks, jpellerin@gmail.com

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3069 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 88d215f7021ff085cc1420236a721a286e548ce4 1 parent 674773b
Adrian Holovaty authored June 02, 2006

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  django/core/management.py
4  django/core/management.py
@@ -1055,7 +1055,9 @@ def run_shell(use_plain=False):
1055 1055
             # Don't bother loading IPython, because the user wants plain Python.
1056 1056
             raise ImportError
1057 1057
         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=[])
1059 1061
         shell.mainloop()
1060 1062
     except ImportError:
1061 1063
         import code

0 notes on commit 88d215f

Please sign in to comment.
Something went wrong with that request. Please try again.