• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1import os.path
2import sys
3
4# 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.
8idlelib_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
9if idlelib_dir not in sys.path:
10    sys.path.insert(0, idlelib_dir)
11
12from idlelib.PyShell import main  # This is subject to change
13main()
14