blob: 141534dfe13583942cba5807f53295e9fc78adb9 [file] [log] [blame]
Kurt B. Kaiser106ac462009-05-03 01:03:44 +00001import os.path
2import sys
3
Terry Jan Reedy8d7fa402016-09-30 02:53:33 -04004# Enable running IDLE with idlelib in a non-standard location.
5# This was once used to run development versions of IDLE.
6# Because PEP 434 declared idle.py a public interface,
7# removal should require deprecation.
Kurt B. Kaiser106ac462009-05-03 01:03:44 +00008idlelib_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
Terry Jan Reedy8d7fa402016-09-30 02:53:33 -04009if idlelib_dir not in sys.path:
10 sys.path.insert(0, idlelib_dir)
Kurt B. Kaiser106ac462009-05-03 01:03:44 +000011
Terry Jan Reedy8d7fa402016-09-30 02:53:33 -040012from idlelib.PyShell import main # This is subject to change
13main()