From: Alex T. <ale...@us...> - 2006-05-18 21:11:57
|
Update of /cvsroot/pythoncard/PythonCard In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28658 Modified Files: util.py Log Message: Handle later versions of Python for Mac. Index: util.py =================================================================== RCS file: /cvsroot/pythoncard/PythonCard/util.py,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** util.py 18 May 2005 22:12:17 -0000 1.38 --- util.py 18 May 2006 21:11:49 -0000 1.39 *************** *** 15,19 **** if sys.platform == 'darwin': # this is a temporary hack for bundlebuilder ! return not sys.executable == '/System/Library/Frameworks/Python.framework/Versions/2.3/Resources/Python.app/Contents/MacOS/Python' else: return (hasattr(sys, "frozen") or # new py2exe, McMillan --- 15,21 ---- if sys.platform == 'darwin': # this is a temporary hack for bundlebuilder ! return not (sys.executable == '/System/Library/Frameworks/Python.framework/Versions/2.3/Resources/Python.app/Contents/MacOS/Python' or \ ! sys.executable == '/Library/Frameworks/Python.framework/Versions/2.4/Resources/Python.app/Contents/MacOS/Python' or \ ! sys.executable == '/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python') else: return (hasattr(sys, "frozen") or # new py2exe, McMillan |