From: Sandro Tosi Date: Sat, 7 Jan 2012 17:34:07 +0000 (+0100) Subject: Py_SetPythonHome() can be called before Py_Initialize(); thanks to Cody Smith from... X-Git-Tag: v3.2.3rc1~204 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=645a0dd6f79004652c52ae9d7246d1b219772588;p=thirdparty%2FPython%2Fcpython.git Py_SetPythonHome() can be called before Py_Initialize(); thanks to Cody Smith from docs@ --- diff --git a/Doc/c-api/init.rst b/Doc/c-api/init.rst index 94f8c05ea628..7507e3b52dc4 100644 --- a/Doc/c-api/init.rst +++ b/Doc/c-api/init.rst @@ -29,7 +29,7 @@ Initializing and finalizing the interpreter Initialize the Python interpreter. In an application embedding Python, this should be called before using any other Python/C API functions; with the - exception of :c:func:`Py_SetProgramName` and :c:func:`Py_SetPath`. This initializes + exception of :c:func:`Py_SetProgramName`, :c:func:`Py_SetPythonHome` and :c:func:`Py_SetPath`. This initializes the table of loaded modules (``sys.modules``), and creates the fundamental modules :mod:`builtins`, :mod:`__main__` and :mod:`sys`. It also initializes the module search path (``sys.path``). It does not set ``sys.argv``; use