You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 24, 2023. It is now read-only.
// Set the default “home” directory, that is, the location of the standard Python libraries. See PYTHONHOME for the meaning of the argument string.
48
+
//
49
+
// The argument should point to a zero-terminated character string in static storage whose contents will not change for the duration of the program’s execution. No code in the Python interpreter will change the contents of this storage.
50
+
funcPy_SetPythonHome(homestring) {
51
+
C.free(unsafe.Pointer(C.gopy_PythonHome))
52
+
C.gopy_PythonHome=C.CString(home)
53
+
C.Py_SetPythonHome(C.gopy_PythonHome)
54
+
}
55
+
56
+
// Return the default “home”, that is, the value set by a previous call to Py_SetPythonHome(), or the value of the PYTHONHOME environment variable if it is set.
0 commit comments