2001-06-25 07:23:57 +00:00
|
|
|
#! /usr/bin/env python
|
|
|
|
|
2002-12-21 21:03:06 +00:00
|
|
|
import sys as _sys
|
2002-12-20 04:24:43 +00:00
|
|
|
|
2002-12-21 21:03:06 +00:00
|
|
|
# See if we are being asked to execute the subprocess code
|
|
|
|
if '-p' in _sys.argv:
|
|
|
|
# run expects only the port number in _sys.argv
|
|
|
|
_sys.argv.remove('-p')
|
2002-12-20 04:24:43 +00:00
|
|
|
|
|
|
|
# this module will become the namepsace used by the interactive
|
|
|
|
# interpreter; remove all variables we have defined.
|
2002-12-21 21:03:06 +00:00
|
|
|
del _sys
|
2002-12-20 04:24:43 +00:00
|
|
|
__import__('run').main()
|
|
|
|
else:
|
2002-12-21 21:03:06 +00:00
|
|
|
# Start the IDLE GUI
|
2002-12-20 04:24:43 +00:00
|
|
|
import PyShell
|
|
|
|
PyShell.main()
|