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)
| 176 | from . import connection # noqa: F401 |
| 177 | |
| 178 | def set_executable(self, executable): |
| 179 | '''Sets the path to a python.exe or pythonw.exe binary used to run |
| 180 | child processes instead of sys.executable when using the 'spawn' |
| 181 | start method. Useful for people embedding Python. |
| 182 | ''' |
| 183 | from .spawn import set_executable |
| 184 | set_executable(executable) |
| 185 | |
| 186 | def set_forkserver_preload(self, module_names, *, on_error='ignore'): |
| 187 | '''Set list of module names to try to load in forkserver process. |