summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/idles
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/idlelib/idles')
-rwxr-xr-xLib/idlelib/idles13
1 files changed, 13 insertions, 0 deletions
diff --git a/Lib/idlelib/idles b/Lib/idlelib/idles
new file mode 100755
index 0000000..b2233b7
--- /dev/null
+++ b/Lib/idlelib/idles
@@ -0,0 +1,13 @@
+#! /usr/bin/env python
+
+import os
+import sys
+from idlelib import IdleConf
+
+idle_dir = os.path.dirname(IdleConf.__file__)
+IdleConf.load(idle_dir)
+
+# defer importing Pyshell until IdleConf is loaded
+from idlelib import PyShell
+# open a shell instead of an editor window
+PyShell.main(0)