diff options
-rw-r--r-- | Doc/c-api/init.rst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Doc/c-api/init.rst b/Doc/c-api/init.rst index 327aed7..ec6207b 100644 --- a/Doc/c-api/init.rst +++ b/Doc/c-api/init.rst @@ -369,6 +369,20 @@ Initialization, Finalization, and Threads check w/ Guido. +.. cfunction:: void Py_SetPythonHome(char *home) + + Set the default "home" directory, that is, the location of the standard + Python libraries. The libraries are searched in + :file:`{home}/lib/python{version}` and :file:`{home}/lib/python{version}`. + + +.. cfunction:: char* Py_GetPythonHome() + + Return the default "home", that is, the value set by a previous call to + :cfunc:`Py_SetPythonHome`, or the value of the :envvar:`PYTHONHOME` + environment variable if it is set. + + .. _threads: Thread State and the Global Interpreter Lock |