]> granicus.if.org Git - python/commitdiff
Support testing in .../Lib/idlelib when calling <python PyShell.py>
authorKurt B. Kaiser <kbk@shore.net>
Sun, 15 Jun 2003 17:38:45 +0000 (17:38 +0000)
committerKurt B. Kaiser <kbk@shore.net>
Sun, 15 Jun 2003 17:38:45 +0000 (17:38 +0000)
by providing other modules access to globals set up in PyShell.main()

Lib/idlelib/PyShell.py

index 60fe3c20bc9be6cb65892f9afff784ded746ac2a..34780041182b8ca92812c341fda5e4f1fd60cb5b 100644 (file)
@@ -1299,4 +1299,5 @@ details.
 """
 
 if __name__ == "__main__":
+    sys.modules['PyShell'] = sys.modules['__main__']
     main()