blob: 141534dfe13583942cba5807f53295e9fc78adb9 [file] [log] [blame]
Kurt B. Kaiser1521fda2009-05-06 03:38:31 +00001import os.path
2import sys
3
Terry Jan Reedy1813aa12016-09-30 02:53:44 -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. Kaiser1521fda2009-05-06 03:38:31 +00008idlelib_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
Terry Jan Reedy1813aa12016-09-30 02:53:44 -04009if idlelib_dir not in sys.path:
10 sys.path.insert(0, idlelib_dir)
Kurt B. Kaiser1521fda2009-05-06 03:38:31 +000011
Terry Jan Reedy1813aa12016-09-30 02:53:44 -040012from idlelib.PyShell import main # This is subject to change
13main()