In the multiprocessing.forking module, there's:<div><br></div><div><div> def get_command_line():</div><div> ...</div><div><br></div><div> if getattr(sys, 'frozen', False):</div><div> return [sys.executable, '--multiprocessing-fork']</div>
<div> else:</div><div> prog = 'from multiprocessing.forking import main; main()'</div><div> return [_python_exe, '-c', prog, '--multiprocessing-fork']</div><div><br></div>
<div>I think that the test there should be "if not getattr(sys, 'frozen', False):", because if its not frozen then you want to use the sys.executable -- but if it is, you want to use the one which has been explicitly set. I think, at least. I'm not quite sure if I want to report it as a bug yet because I'm very new to multiprocessing and am doing something very complicated (a windows service using multiprocessing to start various processes, each of which start arbitrary thirdparty-non-python subprocesses themselves) so maybe my understanding is wrong.</div>
<div><br></div><div>Or iiis it not?</div><div><br></div><div>--S</div>
</div>