Mercurial > repos > rliterman > csp2
annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/lib/python3.8/idlelib/idle.py @ 68:5028fdace37b
planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author | jpayne |
---|---|
date | Tue, 18 Mar 2025 16:23:26 -0400 |
parents | |
children |
rev | line source |
---|---|
jpayne@68 | 1 import os.path |
jpayne@68 | 2 import sys |
jpayne@68 | 3 |
jpayne@68 | 4 |
jpayne@68 | 5 # Enable running IDLE with idlelib in a non-standard location. |
jpayne@68 | 6 # This was once used to run development versions of IDLE. |
jpayne@68 | 7 # Because PEP 434 declared idle.py a public interface, |
jpayne@68 | 8 # removal should require deprecation. |
jpayne@68 | 9 idlelib_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) |
jpayne@68 | 10 if idlelib_dir not in sys.path: |
jpayne@68 | 11 sys.path.insert(0, idlelib_dir) |
jpayne@68 | 12 |
jpayne@68 | 13 from idlelib.pyshell import main # This is subject to change |
jpayne@68 | 14 main() |