From: Kevin A. <al...@se...> - 2012-06-04 14:24:18
|
Yes, the main_is_frozen method is the only thing that gets changed. ka On Jun 3, 2012, at 11:05 PM, hra...@kt... wrote: > > After you have PythonCard installed, it will be necessary to make a > modification to the file util.py located at > /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/PythonCard/util.py > I opened this file in BBEdit and it has 420 lines of code. > In util.py, change the following method to simplify the bundlebuilder > check rather than having it checking for specific versions of MacPython... > > 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 > Does this code replace the block of lines 14 through 23? |