From: Jack Jansen Date: Tue, 22 Apr 2003 14:33:48 +0000 (+0000) Subject: If not icon file is specified use the default Python Applet icons. X-Git-Tag: v2.3c1~1081 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d69b74453192bed078946fbe0f2b06489a118121;p=python If not icon file is specified use the default Python Applet icons. Fixes 719303. --- diff --git a/Lib/plat-mac/buildtools.py b/Lib/plat-mac/buildtools.py index 6e6396d35c..bebab194b3 100644 --- a/Lib/plat-mac/buildtools.py +++ b/Lib/plat-mac/buildtools.py @@ -289,6 +289,10 @@ def process_common_macho(template, progress, code, rsrcname, destname, is_update icnsname = None 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 if progress: