Ticket #15386: fix-PYTHONSTARTUP-support-in-manage.py-shell.diff
File fix-PYTHONSTARTUP-support-in-manage.py-shell.diff, 647 bytes (added by , 14 years ago) |
---|
-
django/core/management/commands/shell.py
76 76 pythonrc = os.environ.get("PYTHONSTARTUP") 77 77 if pythonrc and os.path.isfile(pythonrc): 78 78 try: 79 execfile(pythonrc )79 execfile(pythonrc, imported_objects) 80 80 except NameError: 81 81 pass 82 82 # This will import .pythonrc.py as a side-effect