summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2003-06-15 17:38:45 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2003-06-15 17:38:45 (GMT)
commit9e8b828f07d0a55676e987b4ca70c247853f5695 (patch)
treeca3260075ea4cf72353dbe3e74a3770787e04a63 /Lib/idlelib
parentf35092c3d4c711e8085adc84294a1a01cdf8b59a (diff)
downloadcpython-9e8b828f07d0a55676e987b4ca70c247853f5695.zip
cpython-9e8b828f07d0a55676e987b4ca70c247853f5695.tar.gz
cpython-9e8b828f07d0a55676e987b4ca70c247853f5695.tar.bz2
Support testing in .../Lib/idlelib when calling <python PyShell.py>
by providing other modules access to globals set up in PyShell.main()
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/PyShell.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index 60fe3c2..3478004 100644
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -1299,4 +1299,5 @@ details.
"""
if __name__ == "__main__":
+ sys.modules['PyShell'] = sys.modules['__main__']
main()