blob: 08af399b2c82d1771fa2f3b7c4f419e19e772ce8 [file] [log] [blame]
Steven M. Gavad7b6ed22001-06-25 07:23:57 +00001#! /usr/bin/env python
2
Kurt B. Kaiserdd70e1b2002-12-21 21:03:06 +00003import sys as _sys
Tony Lowndsf53dec22002-12-20 04:24:43 +00004
Kurt B. Kaiserdd70e1b2002-12-21 21:03:06 +00005# See if we are being asked to execute the subprocess code
6if '-p' in _sys.argv:
7 # run expects only the port number in _sys.argv
8 _sys.argv.remove('-p')
Tony Lowndsf53dec22002-12-20 04:24:43 +00009
10 # this module will become the namepsace used by the interactive
11 # interpreter; remove all variables we have defined.
Kurt B. Kaiserdd70e1b2002-12-21 21:03:06 +000012 del _sys
Tony Lowndsf53dec22002-12-20 04:24:43 +000013 __import__('run').main()
14else:
Kurt B. Kaiserdd70e1b2002-12-21 21:03:06 +000015 # Start the IDLE GUI
Tony Lowndsf53dec22002-12-20 04:24:43 +000016 import PyShell
17 PyShell.main()