summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/idle.pyw
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/idlelib/idle.pyw')
-rw-r--r--Lib/idlelib/idle.pyw12
1 files changed, 12 insertions, 0 deletions
diff --git a/Lib/idlelib/idle.pyw b/Lib/idlelib/idle.pyw
new file mode 100644
index 0000000..71fdce5
--- /dev/null
+++ b/Lib/idlelib/idle.pyw
@@ -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()