[Python-checkins] CVS: python/dist/src/Include pydebug.h,2.15,2.16

Neil Schemenauer nascheme@users.sourceforge.net
Mon, 23 Jul 2001 09:30:29 -0700


Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv25036/Include

Modified Files:
	pydebug.h 
Log Message:
Add -E command line switch (ignore environment variables like PYTHONHOME
and PYTHONPATH).


Index: pydebug.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/pydebug.h,v
retrieving revision 2.15
retrieving revision 2.16
diff -C2 -d -r2.15 -r2.16
*** pydebug.h	2000/09/01 23:29:26	2.15
--- pydebug.h	2001/07/23 16:30:26	2.16
***************
*** 15,18 ****
--- 15,24 ----
  extern DL_IMPORT(int) Py_TabcheckFlag;
  extern DL_IMPORT(int) Py_UnicodeFlag;
+ extern DL_IMPORT(int) Py_IgnoreEnvironmentFlag;
+ 
+ /* this is a wrapper around getenv() the pays attention to
+    Py_IgnoreEnvironmentFlag.  It should be used for getting variables like
+    PYTHONPATH and PYTHONHOME from the environment */
+ #define Py_GETENV(s) (Py_IgnoreEnvironmentFlag ? NULL : getenv(s))
  
  DL_IMPORT(void) Py_FatalError(char *message);