Yes, this is the nicest. Only use please different coding convention:

meipass2_value

Martin Gamwell Dawids píše v Pá 25. 11. 2011 v 04:38 -0800:
> B) Only _MEIPASS2 as variable (it is used 4 time).
> MEIPASS2 = '_MEIPASS2'
> if MEIPASS2 in os.environ:
>     meipass2Value = os.environ[MEIPASS2]
> 
>     # Ensure sys._MEIPASS is absolute path.
>     meipass2Value = os.path.normpath(meipass2Value)
>     meipass2Value = os.path.abspath(meipass2Value)
>     sys._MEIPASS = meipass2Value
> 
>     # Delete _MEIPASS2 from environment.
>     del os.environ[MEIPASS2]
> 
> 

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