Skip to content

Commit 28700c4

Browse files
committed
Use Py_GetPythonHome() instead of getenv("PYTHONHOME").
1 parent 8b2b3ce commit 28700c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

PC/os2vacpp/getpathp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ calculate_path()
325325
char argv0_path[MAXPATHLEN+1];
326326
char *buf;
327327
int bufsz;
328-
char *pythonhome = getenv("PYTHONHOME");
328+
char *pythonhome = Py_GetPythonHome();
329329
char *envpath = getenv("PYTHONPATH");
330330
#ifdef MS_WIN32
331331
char *machinepath, *userpath;

0 commit comments

Comments
 (0)