mirror of
https://github.com/python/cpython.git
synced 2025-08-16 23:01:34 +00:00
#5015: document PythonHome API functions.
This commit is contained in:
parent
3ceebd2ca7
commit
4400d84bf7
1 changed files with 14 additions and 0 deletions
|
@ -369,6 +369,20 @@ Initialization, Finalization, and Threads
|
||||||
check w/ Guido.
|
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:
|
.. _threads:
|
||||||
|
|
||||||
Thread State and the Global Interpreter Lock
|
Thread State and the Global Interpreter Lock
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue