]> granicus.if.org Git - python/commitdiff
IDLE can be launched as python -m ildelib
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Mon, 26 Mar 2012 19:11:46 +0000 (22:11 +0300)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Mon, 26 Mar 2012 19:11:46 +0000 (22:11 +0300)
Lib/idlelib/__main__.py [new file with mode: 0644]
Misc/NEWS

diff --git a/Lib/idlelib/__main__.py b/Lib/idlelib/__main__.py
new file mode 100644 (file)
index 0000000..0666f2f
--- /dev/null
@@ -0,0 +1,9 @@
+"""
+IDLE main entry point
+
+Run IDLE as python -m idlelib
+"""
+
+
+import idlelib.PyShell
+idlelib.PyShell.main()
index df13d40e63d02825028314988b21eaa42d382fc8..0c01755e4fcc17f7e81f0fdbc80da55eaf10fe4d 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -34,6 +34,8 @@ Core and Builtins
 Library
 -------
 
+- IDLE can be launched as python -m ildelib
+
 - Issue #14295: Add unittest.mock
 
 - Issue #7652: Add --with-system-libmpdec option to configure for linking