Am 13.10.2011 14:15, schrieb Martin Zibricky:
Hartmut Goebel píše v Čt 13. 10. 2011 v 11:40 +0200:
Documented in http://www.pyinstaller.org/wiki/Recipe/Multiprocessing
It works fine in --onedir mode. However for --onefile there are some
issues.
Argl. Reading this thread I thought, it does.
One minor issue was that we need to get correct _MEIPASS value. And we
can't get it from dirname(sys.executable). I fixed the Recipe to get the
right value from PYTHONPATH.
This will fail if sys.path was changed in the meantime. I propose
changing the loader to store the value somewhere else. E.e. in sys._MEIPASS.
However, another issue is that the main process is not waiting for the
multiprocess subprocesses to finish their activity!
So we need dome kind of `wait`. Maybe this could help at the end of
__main__:
while multiprocessing.active_children():
multiprocessing.active_children()[0].join()
--
Schönen Gruß - Regards
Hartmut Goebel
Dipl.-Informatiker (univ.), CISSP, CSSLP
Goebel Consult
Spezialist für IT-Sicherheit in komplexen Umgebungen
http://www.goebel-consult.de
Monatliche Kolumne: http://www.cissp-gefluester.de/
Goebel Consult ist Mitglied bei http://www.7-it.de
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pyinstaller?hl=en.