From 296443137f4288cb030e92859ccfbe3204bc1088 Mon Sep 17 00:00:00 2001 From: rahulp13 Date: Tue, 17 Mar 2020 14:55:41 +0530 Subject: initial commit --- lib/python2.7/idlelib/idle.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lib/python2.7/idlelib/idle.py (limited to 'lib/python2.7/idlelib/idle.py') diff --git a/lib/python2.7/idlelib/idle.py b/lib/python2.7/idlelib/idle.py new file mode 100644 index 0000000..141534d --- /dev/null +++ b/lib/python2.7/idlelib/idle.py @@ -0,0 +1,13 @@ +import os.path +import sys + +# Enable running IDLE with idlelib in a non-standard location. +# This was once used to run development versions of IDLE. +# Because PEP 434 declared idle.py a public interface, +# removal should require deprecation. +idlelib_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +if idlelib_dir not in sys.path: + sys.path.insert(0, idlelib_dir) + +from idlelib.PyShell import main # This is subject to change +main() -- cgit