MCPcopy Index your code
hub / github.com/RustPython/RustPython / set_executable

Method set_executable

Lib/multiprocessing/context.py:172–178  ·  view source on GitHub ↗

Sets the path to a python.exe or pythonw.exe binary used to run child processes instead of sys.executable when using the 'spawn' start method. Useful for people embedding Python.

(self, executable)

Source from the content-addressed store, hash-verified

170 from . import connection
171
172 def set_executable(self, executable):
173 '''Sets the path to a python.exe or pythonw.exe binary used to run
174 child processes instead of sys.executable when using the 'spawn'
175 start method. Useful for people embedding Python.
176 '''
177 from .spawn import set_executable
178 set_executable(executable)
179
180 def set_forkserver_preload(self, module_names):
181 '''Set list of module names to try to load in forkserver process.

Callers 1

test_set_executableMethod · 0.80

Calls 1

set_executableFunction · 0.85

Tested by 1

test_set_executableMethod · 0.64