From d69b74453192bed078946fbe0f2b06489a118121 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Tue, 22 Apr 2003 14:33:48 +0000 Subject: If not icon file is specified use the default Python Applet icons. Fixes 719303. --- Lib/plat-mac/buildtools.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Lib/plat-mac/buildtools.py') 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: -- cgit v1.2.1