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)
| 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. |