From 7d4bb9f179f1888a472fd5d5a30df4ec3c55fea5 Mon Sep 17 00:00:00 2001 From: Neil Schemenauer Date: Mon, 23 Jul 2001 16:30:27 +0000 Subject: Add -E command line switch (ignore environment variables like PYTHONHOME and PYTHONPATH). --- RISCOS/Modules/getpath_riscos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'RISCOS/Modules/getpath_riscos.c') diff --git a/RISCOS/Modules/getpath_riscos.c b/RISCOS/Modules/getpath_riscos.c index 7582b17306..8b36952f33 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); -- cgit v1.2.1