Make sure that the line

       return not (sys.executable.endswith('Resources/'))

does not contain any spaces, etc. in the string

I just realized that somewhere in the process of posting to the list the code got corrupted.


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/'))
       return (hasattr(sys, "frozen") or # new py2exe, McMillan
               hasattr(sys, "importers") # old py2exe
               or imp.is_frozen("__main__")) # tools/freeze, cx_freeze