1import os.path 2import sys 3 4 5# Enable running IDLE with idlelib in a non-standard location. 6# This was once used to run development versions of IDLE. 7# Because PEP 434 declared idle.py a public interface, 8# removal should require deprecation. 9idlelib_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 10if idlelib_dir not in sys.path: 11 sys.path.insert(0, idlelib_dir) 12 13from idlelib.pyshell import main # This is subject to change 14main() 15