[Python-checkins] python/dist/src/Python pythonrun.c,2.178,2.179

jvr@users.sourceforge.net jvr@users.sourceforge.net
Tue, 25 Feb 2003 12:25:18 -0800


Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1:/tmp/cvs-serv14679/Python

Modified Files:
	pythonrun.c 
Log Message:
Addendum to #683658:
import warnings.py _after_ site.py has run. This ensures that site.py
is again the first .py to be imported, giving it back full control over
sys.path.


Index: pythonrun.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/pythonrun.c,v
retrieving revision 2.178
retrieving revision 2.179
diff -C2 -d -r2.178 -r2.179
*** pythonrun.c	19 Feb 2003 00:33:33 -0000	2.178
--- pythonrun.c	25 Feb 2003 20:25:12 -0000	2.179
***************
*** 175,180 ****
  	_PyImportHooks_Init();
  
- 	PyModule_WarningsModule = PyImport_ImportModule("warnings");
- 
  	initsigs(); /* Signal handling stuff, including initintr() */
  
--- 175,178 ----
***************
*** 182,185 ****
--- 180,185 ----
  	if (!Py_NoSiteFlag)
  		initsite(); /* Module site */
+ 
+ 	PyModule_WarningsModule = PyImport_ImportModule("warnings");
  }