On 09/08/2018 19:33, Apple wrote:> So my program runs one script file,
and multiprocessing commands from that script file seem to fail to spawn
new processes.
> 
> However, if that script file calls a function in a separate script file that 
> it has imported, and that function calls multiprocessing functions, it all 
> works exactly the way it should.
> On Thursday, August 9, 2018 at 12:09:36 PM UTC-4, Apple wrote:
>> I've been working on a project involving embedding Python into a Windows 
>> application. I've got all of that working fine on the C++ side, but the 
>> script side seems to be hitting a dead end with multiprocessing. When my 
>> script tries to run the same multiprocessing code that works in a 
>> non-embedded environment, the code doesn't appear to be executed at all.
>>
>> Still no joy. However, a Python.exe window does pop up for a tenth of a 
>> second, so *something* is happening.

That may be something simple: Did you actually protected the entry-point
of your Python script with if __name__ == '__main__': ?
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to