Kaydet (Commit) ea7120c7 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

Py_SetPythonHome uses static storage #6913

üst 58d23fbb
......@@ -374,6 +374,10 @@ Initialization, Finalization, and Threads
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}`.
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.
.. cfunction:: char* Py_GetPythonHome()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment