I've searched the net and this group but I failed to find a solution for my strange problem. The sys._MEIPASS attribute points to a non existing path, the program runs but it can't find images that are included. Could it be that the path is created at runtime as the app runs but then it's deleted ?? I can't find the path _MEIPASS is pointing to while the app is running.
In short _MEIPASS == C:/Users/Emin/AppData/Local/Temp/_MEI55002/ But when the app is running I don't have C:/Users/Emin/AppData/Local/ Temp/_MEI55002/ so any loading done by the app from inside that path would obviously fail. I build the exe like this: C:\Users\Emin\pyinstaller_trunk_r719\trunk>pyinstaller.py --onefile -d c:\Users\ Emin\pyinstaller_trunk_r719\trunk\NjoyPlayer\NjoyPlayer.spec I include the image files with a COLLECT in the spec file. When I run the produced exe this output is produced: C:\Users\Emin>NjoyPlayer.exe _MEIPASS2 is NULL Extracting binaries Executing self as child with Setting up to run child Creating child process Waiting for child process to finish... _MEIPASS2 is C:/Users/Emin/AppData/Local/Temp/_MEI55002/ Already in the child - running! manifestpath: C:/Users/Emin/AppData/Local/Temp/_MEI55002/ NjoyPlayer.exe.manifest Activation context created Activation context activated C:/Users/Emin/AppData/Local/Temp/_MEI55002/python27.dll Manipulating evironment PYTHONPATH=C:/Users/Emin/AppData/Local/Temp/_MEI55002;C:/Users/Emin importing modules from CArchive extracted iu extracted struct extracted archive Installing import hooks outPYZ1.pyz Running scripts [application is still running] Regards, Stas -- 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.
