mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -1055,7 +1055,9 @@ def run_shell(use_plain=False): | |||||||
|             # Don't bother loading IPython, because the user wants plain Python. |             # Don't bother loading IPython, because the user wants plain Python. | ||||||
|             raise ImportError |             raise ImportError | ||||||
|         import IPython |         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() |         shell.mainloop() | ||||||
|     except ImportError: |     except ImportError: | ||||||
|         import code |         import code | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user