On Tue, 2010-03-30 at 20:08 -0600, Peter Scheie wrote:
> In my python script, I'm trying to copy a file from
> os.environ['_MEIPASS2'], which appears to point to
> C:/DOCUME~1/PETER/LOCALS~1/Temp/_MEI5322/. The file is supposed to be
> placed there by the a.datas method in the spec file. However, the
> directory doesn't exist.  Is this something I have to create in my
> script so that the script can place the file (included in the .exe)
> there at run time?  I was under the impression that it was created
> automatically/dynamically.

The directory is created at startup and removed after the application
exits. I am not aware of any bug where _MEIPASS2 at runtime points to a
directory which it does not exist, and it sounds very weird to me.

Can you reproduce your problem with a working program that you can
share?


-- 
Giovanni Bajo   ::  [email protected]
Develer S.r.l.  ::  http://www.develer.com

My Blog: http://giovanni.bajo.it
Last post: C++ and copy-on-write data structures

-- 
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.

Reply via email to