mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Use Py_GetPythonHome() instead of getenv("PYTHONHOME").
This commit is contained in:
parent
8b2b3ce4be
commit
28700c464a
1 changed files with 1 additions and 1 deletions
|
|
@ -325,7 +325,7 @@ calculate_path()
|
|||
char argv0_path[MAXPATHLEN+1];
|
||||
char *buf;
|
||||
int bufsz;
|
||||
char *pythonhome = getenv("PYTHONHOME");
|
||||
char *pythonhome = Py_GetPythonHome();
|
||||
char *envpath = getenv("PYTHONPATH");
|
||||
#ifdef MS_WIN32
|
||||
char *machinepath, *userpath;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue