4 # IDLE is not installed, but maybe PyShell is on sys.path:
11 idledir = os.path.dirname(os.path.abspath(PyShell.__file__))
12 if idledir != os.getcwd():
13 # We're not in the IDLE directory, help the subprocess find run.py
14 pypath = os.environ.get('PYTHONPATH', '')
16 os.environ['PYTHONPATH'] = pypath + ':' + idledir
18 os.environ['PYTHONPATH'] = idledir
21 idlelib.PyShell.main()