-
As described here, simply importing a package that uses multiprocessing was causing my simple script to launch itself continuously (only in the pyinstaller packaged application, running the script directly was fine). Adding this to the top of my script fixed it:
But I'm wondering if there's a way in the spec file and/or command line to deal with this automatically. Or is adding this to the entry point for my project the best solution? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
It's multiprocessing which is very different from multithreading but no, calling |
Beta Was this translation helpful? Give feedback.
It's multiprocessing which is very different from multithreading but no, calling
multiprocessing.freeze_support()
has to be done in code so that the parent process and child processes are able to identify themselves as such.