cpython/Lib/idlelib/idle
Kurt B. Kaiser dd70e1be91 M PyShell.py
M idle
M setup.py

To be able to run from the source directory or from an installed version
of IDLE, and also to allow the subprocess to find run(), Python needs to
have the idlelib package on its path.

1. Modify setup.py to supply a .pth file living at same level as idlelib
2. Move boolcheck to PyShell.py
3. Remove boolcheck and path setting code from the "idle" script
2002-12-21 21:03:06 +00:00

17 lines
441 B
Python
Executable file

#! /usr/bin/env python
import sys as _sys
# 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')
# this module will become the namepsace used by the interactive
# interpreter; remove all variables we have defined.
del _sys
__import__('run').main()
else:
# Start the IDLE GUI
import PyShell
PyShell.main()