annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/lib/python3.8/idlelib/idle.pyw @ 69:33d812a61356

planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author jpayne
date Tue, 18 Mar 2025 17:55:14 -0400
parents
children
rev   line source
jpayne@69 1 try:
jpayne@69 2 import idlelib.pyshell
jpayne@69 3 except ImportError:
jpayne@69 4 # IDLE is not installed, but maybe pyshell is on sys.path:
jpayne@69 5 from . import pyshell
jpayne@69 6 import os
jpayne@69 7 idledir = os.path.dirname(os.path.abspath(pyshell.__file__))
jpayne@69 8 if idledir != os.getcwd():
jpayne@69 9 # We're not in the IDLE directory, help the subprocess find run.py
jpayne@69 10 pypath = os.environ.get('PYTHONPATH', '')
jpayne@69 11 if pypath:
jpayne@69 12 os.environ['PYTHONPATH'] = pypath + ':' + idledir
jpayne@69 13 else:
jpayne@69 14 os.environ['PYTHONPATH'] = idledir
jpayne@69 15 pyshell.main()
jpayne@69 16 else:
jpayne@69 17 idlelib.pyshell.main()