mirror of https://github.com/python/cpython
Use Py_GetPythonHome() instead of getenv("PYTHONHOME").
This commit is contained in:
parent
8b2b3ce4be
commit
28700c464a
|
@ -325,7 +325,7 @@ calculate_path()
|
||||||
char argv0_path[MAXPATHLEN+1];
|
char argv0_path[MAXPATHLEN+1];
|
||||||
char *buf;
|
char *buf;
|
||||||
int bufsz;
|
int bufsz;
|
||||||
char *pythonhome = getenv("PYTHONHOME");
|
char *pythonhome = Py_GetPythonHome();
|
||||||
char *envpath = getenv("PYTHONPATH");
|
char *envpath = getenv("PYTHONPATH");
|
||||||
#ifdef MS_WIN32
|
#ifdef MS_WIN32
|
||||||
char *machinepath, *userpath;
|
char *machinepath, *userpath;
|
||||||
|
|
Loading…
Reference in New Issue