Ticket #3386: pythonrc.diff
| File pythonrc.diff, 0.7 kB (added by Jeff Bauer <jbauer@rubic.com>, 3 years ago) |
|---|
-
django/core/management.py
old new 1194 1194 # we already know 'readline' was imported successfully. 1195 1195 import rlcompleter 1196 1196 readline.parse_and_bind("tab:complete") 1197 if not use_plain: 1198 pythonrc = os.environ.get("PYTHONSTARTUP") 1199 if pythonrc and os.path.isfile(pythonrc): 1200 try: 1201 execfile(pythonrc) 1202 except NameError: 1203 pass 1204 else: 1205 import user 1197 1206 code.interact() 1198 1207 run_shell.args = '[--plain]' 1199 1208
