ID EN
Multiprocessing

set_executable

Python 3.11

Set the path of the Python interpreter to use when starting a child process. (By default sys.executable is used). Embedders will probably need to do some thing like

Syntax

PYTHON
multiprocessing.set_executable(executable)

Examples

Example 1
PYTHON
set_executable(os.path.join(sys.exec_prefix, 'pythonw.exe'))

See Also

sys.executable path-like object