Mercurial > repos > rliterman > csp2
comparison CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/lib/python3.8/idlelib/idle.pyw @ 68:5028fdace37b
planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author | jpayne |
---|---|
date | Tue, 18 Mar 2025 16:23:26 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
67:0e9998148a16 | 68:5028fdace37b |
---|---|
1 try: | |
2 import idlelib.pyshell | |
3 except ImportError: | |
4 # IDLE is not installed, but maybe pyshell is on sys.path: | |
5 from . import pyshell | |
6 import os | |
7 idledir = os.path.dirname(os.path.abspath(pyshell.__file__)) | |
8 if idledir != os.getcwd(): | |
9 # We're not in the IDLE directory, help the subprocess find run.py | |
10 pypath = os.environ.get('PYTHONPATH', '') | |
11 if pypath: | |
12 os.environ['PYTHONPATH'] = pypath + ':' + idledir | |
13 else: | |
14 os.environ['PYTHONPATH'] = idledir | |
15 pyshell.main() | |
16 else: | |
17 idlelib.pyshell.main() |