From e877f8ba3306be0c76476c1f841d6f5388b675b7 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 24 Oct 2001 20:13:15 +0000 Subject: SF patch #474590 -- RISC OS support --- RISCOS/Modules/getpath_riscos.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'RISCOS/Modules/getpath_riscos.c') diff --git a/RISCOS/Modules/getpath_riscos.c b/RISCOS/Modules/getpath_riscos.c index 8b36952f33..8705e2c4e7 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=Py_GETENV("Python$Path"); +{ char *pypath=getenv("Python$Path"); if(pypath) { module_search_path=malloc(strlen(pypath)+1); if (module_search_path) sprintf(module_search_path,"%s",pypath); @@ -16,9 +16,9 @@ calculate_path() } } if(!module_search_path) module_search_path = ".Lib"; - prefix=""; + prefix=""; exec_prefix=prefix; - progpath=""; + progpath=Py_GetProgramName(); } /* External interface */ -- cgit v1.2.1