summaryrefslogtreecommitdiffstats
path: root/RISCOS/Modules/getpath_riscos.c
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 /RISCOS/Modules/getpath_riscos.c
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 'RISCOS/Modules/getpath_riscos.c')
-rw-r--r--RISCOS/Modules/getpath_riscos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/RISCOS/Modules/getpath_riscos.c b/RISCOS/Modules/getpath_riscos.c
index 7582b17..8b36952 100644
--- a/RISCOS/Modules/getpath_riscos.c
+++ b/RISCOS/Modules/getpath_riscos.c
@@ -5,7 +5,7 @@ static char *prefix,*exec_prefix,*progpath,*module_search_path=0;
static void
calculate_path()
-{ char *pypath=getenv("Python$Path");
+{ char *pypath=Py_GETENV("Python$Path");
if(pypath)
{ module_search_path=malloc(strlen(pypath)+1);
if (module_search_path) sprintf(module_search_path,"%s",pypath);