Support testing in .../Lib/idlelib when calling <python PyShell.py>

by providing other modules access to globals set up in PyShell.main()
This commit is contained in:
Kurt B. Kaiser 2003-06-15 17:38:45 +00:00
parent f35092c3d4
commit 9e8b828f07
1 changed files with 1 additions and 0 deletions

View File

@ -1299,4 +1299,5 @@ details.
"""
if __name__ == "__main__":
sys.modules['PyShell'] = sys.modules['__main__']
main()