|
From: Kevin A. <al...@se...> - 2012-06-09 19:28:57
|
Make sure that the line
return not (sys.executable.endswith('Resources/Python.app/Contents/MacOS/Python'))
does not contain any spaces, etc. in the string
'Resources/Python.app/Contents/MacOS/Python'
I just realized that somewhere in the process of posting to the list the code got corrupted.
ka
On Jun 2, 2012, at 2:52 PM, Kevin Altis wrote:
def main_is_frozen():
if sys.platform == 'darwin':
# this is a temporary hack for bundlebuilder
return not (sys.executable.endswith('Resources/Python.app/Contents/MacOS/Python'))
else:
return (hasattr(sys, "frozen") or # new py2exe, McMillan
hasattr(sys, "importers") # old py2exe
or imp.is_frozen("__main__")) # tools/freeze, cx_freeze
|