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