From: Kevin A. <al...@se...> - 2009-07-30 00:47:57
|
I dropped a parens on previous code, the correct version which I just copied and pasted from a working version is: 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 Sorry for the earlier mistake, ka |