Ticket #3386: pythonrc.diff

File pythonrc.diff, 735 bytes (added by Jeff Bauer <jbauer@…>, 18 years ago)
  • django/core/management.py

     
    11941194            # we already know 'readline' was imported successfully.
    11951195            import rlcompleter
    11961196            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
    11971206        code.interact()
    11981207run_shell.args = '[--plain]'
    11991208
Back to Top