Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 645a0dd

Browse files
committed
Py_SetPythonHome() can be called before Py_Initialize(); thanks to Cody Smith from docs@
1 parent ded0348 commit 645a0dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/c-api/init.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Initializing and finalizing the interpreter
2929
3030
Initialize the Python interpreter. In an application embedding Python, this
3131
should be called before using any other Python/C API functions; with the
32-
exception of :c:func:`Py_SetProgramName` and :c:func:`Py_SetPath`. This initializes
32+
exception of :c:func:`Py_SetProgramName`, :c:func:`Py_SetPythonHome` and :c:func:`Py_SetPath`. This initializes
3333
the table of loaded modules (``sys.modules``), and creates the fundamental
3434
modules :mod:`builtins`, :mod:`__main__` and :mod:`sys`. It also initializes
3535
the module search path (``sys.path``). It does not set ``sys.argv``; use

0 commit comments

Comments
 (0)