summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2001-07-23 16:30:27 (GMT)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2001-07-23 16:30:27 (GMT)
commit7d4bb9f179f1888a472fd5d5a30df4ec3c55fea5 (patch)
tree6b57c0d5016d8f919397303aaaa11cf610e1dd9d /PC
parentf973c6d5949bfed3e74b8b94c427c43df1e4b95c (diff)
downloadcpython-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 'PC')
-rw-r--r--PC/getpathp.c2
-rw-r--r--PC/os2vacpp/getpathp.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/PC/getpathp.c b/PC/getpathp.c
index 760a575..f32c9d3 100644
--- a/PC/getpathp.c
+++ b/PC/getpathp.c
@@ -425,7 +425,7 @@ calculate_path(void)
char *buf;
size_t bufsz;
char *pythonhome = Py_GetPythonHome();
- char *envpath = getenv("PYTHONPATH");
+ char *envpath = Py_GETENV("PYTHONPATH");
#ifdef MS_WIN32
int skiphome, skipdefault;
diff --git a/PC/os2vacpp/getpathp.c b/PC/os2vacpp/getpathp.c
index 35ce996..5860e75 100644
--- a/PC/os2vacpp/getpathp.c
+++ b/PC/os2vacpp/getpathp.c
@@ -289,7 +289,7 @@ calculate_path(void)
char *buf;
int bufsz;
char *pythonhome = Py_GetPythonHome();
- char *envpath = getenv("PYTHONPATH");
+ char *envpath = Py_GETENV("PYTHONPATH");
#ifdef MS_WIN32
char *machinepath, *userpath;