* Hartmut Goebel (Tue, 03 May 2011 16:36:51 +0200)
> Am 03.05.2011 16:23, schrieb Thorsten Kampe:
> > This didn't work because if running the pure Python script, I get
> > "AttributeError: 'module' object has no attribute 'frozen'". I
> > changed it to "if not os.getenv('_MEIPASS2'):" and this works.
>
> By fault. It should have been
> if not getattr(sys, 'frozen', None):
> ...
Works perfectly (and is better than my "os.getenv()" hack).
Thanks, Thorsten
--
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.