diff options
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2001-07-23 16:30:27 +0000 |
---|---|---|
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2001-07-23 16:30:27 +0000 |
commit | cca51a66763a4449a3cd7d9701c206f3e775de92 (patch) | |
tree | c0a3d01d5280b59d61481dd3e027a22c3e7afe4b /Include/pydebug.h | |
parent | d57c3ad63b737fda4632f5896c8049329bcd4fe2 (diff) | |
download | cpython-cca51a66763a4449a3cd7d9701c206f3e775de92.tar.gz |
Add -E command line switch (ignore environment variables like PYTHONHOME
and PYTHONPATH).
Diffstat (limited to 'Include/pydebug.h')
-rw-r--r-- | Include/pydebug.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Include/pydebug.h b/Include/pydebug.h index 0372401932..94ea352d85 100644 --- a/Include/pydebug.h +++ b/Include/pydebug.h @@ -14,6 +14,12 @@ extern DL_IMPORT(int) Py_UseClassExceptionsFlag; extern DL_IMPORT(int) Py_FrozenFlag; 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); |