Author: adrian
Date: 2006-06-02 14:04:09 -0500 (Fri, 02 Jun 2006)
New Revision: 3069

Modified:
   django/trunk/django/core/management.py
Log:
Fixed #2073 -- Improved 'manage.py shell' not to pass argv to IPython if it's 
installed. Thanks, [EMAIL PROTECTED]

Modified: django/trunk/django/core/management.py
===================================================================
--- django/trunk/django/core/management.py      2006-06-02 18:06:41 UTC (rev 
3068)
+++ django/trunk/django/core/management.py      2006-06-02 19:04:09 UTC (rev 
3069)
@@ -1055,7 +1055,9 @@
             # Don't bother loading IPython, because the user wants plain 
Python.
             raise ImportError
         import IPython
-        shell = IPython.Shell.IPShell()
+        # Explicitly pass an empty list as arguments, because otherwise IPython
+        # would use sys.argv from this script.
+        shell = IPython.Shell.IPShell(argv=[])
         shell.mainloop()
     except ImportError:
         import code


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---

Reply via email to