jpayne@68: import os.path jpayne@68: import sys jpayne@68: jpayne@68: jpayne@68: # Enable running IDLE with idlelib in a non-standard location. jpayne@68: # This was once used to run development versions of IDLE. jpayne@68: # Because PEP 434 declared idle.py a public interface, jpayne@68: # removal should require deprecation. jpayne@68: idlelib_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) jpayne@68: if idlelib_dir not in sys.path: jpayne@68: sys.path.insert(0, idlelib_dir) jpayne@68: jpayne@68: from idlelib.pyshell import main # This is subject to change jpayne@68: main()