mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -1299,4 +1299,5 @@ details.
|
|||
"""
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.modules['PyShell'] = sys.modules['__main__']
|
||||
main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue