Could you pleas try the following code example with the dev version?
It looks like the recipe
http://www.pyinstaller.org/wiki/Recipe/Multiprocessing
is not kept up-to-date.
The 'MEIPASS' magic should not be required. The following example works
for me on win7 in onedir and onefile mode.
---------
import multiprocessing
import os
import sys
class SendeventProcess(multiprocessing.Process):
def __init__(self, resultQueue):
self.resultQueue = resultQueue
multiprocessing.Process.__init__(self)
self.start()
def run(self):
print 'SendeventProcess'
self.resultQueue.put((1, 2))
print 'SendeventProcess'
if __name__ == '__main__':
# On Windows calling this function is necessary.
if sys.platform.startswith('win'):
multiprocessing.freeze_support()
print 'main'
resultQueue = multiprocessing.Queue()
SendeventProcess(resultQueue)
print 'main'
Martin Zibricky píše v Út 29. 01. 2013 v 22:49 +0100:
> Daniel Casper píše v Út 29. 01. 2013 v 12:21 -0800:
> > I'm posting this here primarily because I can't seem to follow up on
> > the ticket I created at the PyInstaller Trac Site (it won't let me
> log
> > in or send me a credentials reset email) so I'm hoping maybe someone
> > here can help. The Trac ticket is over here:
> > http://www.pyinstaller.org/ticket/641. I've attempted to post that
> > I'm using the latest development version of PyInstaller as retrieved
> > from GIT. I went looking, but don't see where the _MEIPASS Value is
> > initially generated, so I'm unsure what is mangling my home folder
> > path. I can provide more details if necessary. Thanks in advance,
>
> the initial value of _MEIPASS is set by the bootloader. It is the C
> code
> in one of dirs
>
> ./source/ (version 2.0)
> ./bootloader/ (dev version)
--
You received this message because you are subscribed to the Google Groups
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyinstaller?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.