[Python-checkins] python/dist/src/Lib/plat-mac buildtools.py,1.9,1.10
jackjansen@users.sourceforge.net
jackjansen@users.sourceforge.net
Tue, 22 Apr 2003 07:33:52 -0700
Update of /cvsroot/python/python/dist/src/Lib/plat-mac
In directory sc8-pr-cvs1:/tmp/cvs-serv23205
Modified Files:
buildtools.py
Log Message:
If not icon file is specified use the default Python Applet icons.
Fixes 719303.
Index: buildtools.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/plat-mac/buildtools.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** buildtools.py 9 Apr 2003 13:25:42 -0000 1.9
--- buildtools.py 22 Apr 2003 14:33:48 -0000 1.10
***************
*** 290,293 ****
--- 290,297 ----
else:
plistname = None
+ if not icnsname:
+ dft_icnsname = os.path.join(sys.prefix, 'Resources/Python.app/Contents/Resources/PythonApplet.icns')
+ if os.path.exists(dft_icnsname):
+ icnsname = dft_icnsname
if not os.path.exists(rsrcname):
rsrcname = None