diff options
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2001-07-23 16:30:27 (GMT) |
---|---|---|
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2001-07-23 16:30:27 (GMT) |
commit | 7d4bb9f179f1888a472fd5d5a30df4ec3c55fea5 (patch) | |
tree | 6b57c0d5016d8f919397303aaaa11cf610e1dd9d /Python/frozenmain.c | |
parent | f973c6d5949bfed3e74b8b94c427c43df1e4b95c (diff) | |
download | cpython-7d4bb9f179f1888a472fd5d5a30df4ec3c55fea5.zip cpython-7d4bb9f179f1888a472fd5d5a30df4ec3c55fea5.tar.gz cpython-7d4bb9f179f1888a472fd5d5a30df4ec3c55fea5.tar.bz2 |
Add -E command line switch (ignore environment variables like PYTHONHOME
and PYTHONPATH).
Diffstat (limited to 'Python/frozenmain.c')
-rw-r--r-- | Python/frozenmain.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/frozenmain.c b/Python/frozenmain.c index a03a2f8..efc87d7 100644 --- a/Python/frozenmain.c +++ b/Python/frozenmain.c @@ -30,9 +30,9 @@ Py_FrozenMain(int argc, char **argv) Py_FrozenFlag = 1; /* Suppress errors from getpath.c */ - if ((p = getenv("PYTHONINSPECT")) && *p != '\0') + if ((p = Py_GETENV("PYTHONINSPECT")) && *p != '\0') inspect = 1; - if ((p = getenv("PYTHONUNBUFFERED")) && *p != '\0') + if ((p = Py_GETENV("PYTHONUNBUFFERED")) && *p != '\0') unbuffered = 1; if (unbuffered) { |