mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00

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
17 lines
441 B
Python
Executable file
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()
|