commit | 9e8b828f07d0a55676e987b4ca70c247853f5695 | [log] [tgz] |
---|---|---|
author | Kurt B. Kaiser <kbk@shore.net> | Sun Jun 15 17:38:45 2003 +0000 |
committer | Kurt B. Kaiser <kbk@shore.net> | Sun Jun 15 17:38:45 2003 +0000 |
tree | ca3260075ea4cf72353dbe3e74a3770787e04a63 | |
parent | f35092c3d4c711e8085adc84294a1a01cdf8b59a [diff] [blame] |
Support testing in .../Lib/idlelib when calling <python PyShell.py> by providing other modules access to globals set up in PyShell.main()
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 @@ """ if __name__ == "__main__": + sys.modules['PyShell'] = sys.modules['__main__'] main()