summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/idle.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/idlelib/idle.py')
-rw-r--r--Lib/idlelib/idle.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/Lib/idlelib/idle.py b/Lib/idlelib/idle.py
new file mode 100644
index 0000000..71fdce5
--- /dev/null
+++ b/Lib/idlelib/idle.py
@@ -0,0 +1,12 @@
+#! /usr/bin/env python
+
+import os
+import sys
+import IdleConf
+
+idle_dir = os.path.split(sys.argv[0])[0]
+IdleConf.load(idle_dir)
+
+# defer importing Pyshell until IdleConf is loaded
+import PyShell
+PyShell.main()