mirror of https://github.com/python/cpython
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:
parent
f35092c3d4
commit
9e8b828f07
|
@ -1299,4 +1299,5 @@ details.
|
|||
"""
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.modules['PyShell'] = sys.modules['__main__']
|
||||
main()
|
||||
|
|
Loading…
Reference in New Issue