[Idle-dev] CVS: idle PyShell.py,1.74,1.75

Kurt B. Kaiser kbk@users.sourceforge.net
Sun, 22 Jun 2003 12:45:49 -0700


Update of /cvsroot/idlefork/idle
In directory sc8-pr-cvs1:/tmp/cvs-serv20197

Modified Files:
	PyShell.py 
Log Message:
Support testing in .../idlefork when calling <python PyShell.py>
by providing other modules access to globals set up in PyShell.main()

(And synch with idlelib)
 Modified Files:
 	PyShell.py 


Index: PyShell.py
===================================================================
RCS file: /cvsroot/idlefork/idle/PyShell.py,v
retrieving revision 1.74
retrieving revision 1.75
diff -C2 -r1.74 -r1.75
*** PyShell.py	5 Jun 2003 23:51:28 -0000	1.74
--- PyShell.py	22 Jun 2003 19:45:46 -0000	1.75
***************
*** 1303,1305 ****
--- 1303,1306 ----
  
  if __name__ == "__main__":
+     sys.modules['PyShell'] = sys.modules['__main__']
      main()