summaryrefslogtreecommitdiffstats
path: root/RISCOS/Modules/getpath_riscos.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-10-24 20:13:15 (GMT)
committerGuido van Rossum <guido@python.org>2001-10-24 20:13:15 (GMT)
commite877f8ba3306be0c76476c1f841d6f5388b675b7 (patch)
tree58535b7aab583873d072c7f76849ccbc7141f852 /RISCOS/Modules/getpath_riscos.c
parent622cc03f0b5ba8e8e51aaa73c137350fe81564a8 (diff)
downloadcpython-e877f8ba3306be0c76476c1f841d6f5388b675b7.zip
cpython-e877f8ba3306be0c76476c1f841d6f5388b675b7.tar.gz
cpython-e877f8ba3306be0c76476c1f841d6f5388b675b7.tar.bz2
SF patch #474590 -- RISC OS support
Diffstat (limited to 'RISCOS/Modules/getpath_riscos.c')
-rw-r--r--RISCOS/Modules/getpath_riscos.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/RISCOS/Modules/getpath_riscos.c b/RISCOS/Modules/getpath_riscos.c
index 8b36952..8705e2c 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 = "<Python$Dir>.Lib";
- prefix="";
+ prefix="<Python$Dir>";
exec_prefix=prefix;
- progpath="<Python$Dir>";
+ progpath=Py_GetProgramName();
}
/* External interface */