idle.py 454 B

1234567891011121314
  1. import os.path
  2. import sys
  3. # Enable running IDLE with idlelib in a non-standard location.
  4. # This was once used to run development versions of IDLE.
  5. # Because PEP 434 declared idle.py a public interface,
  6. # removal should require deprecation.
  7. idlelib_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
  8. if idlelib_dir not in sys.path:
  9. sys.path.insert(0, idlelib_dir)
  10. from idlelib.pyshell import main # This is subject to change
  11. main()