]> granicus.if.org Git - python/commitdiff
If not icon file is specified use the default Python Applet icons.
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 22 Apr 2003 14:33:48 +0000 (14:33 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 22 Apr 2003 14:33:48 +0000 (14:33 +0000)
Fixes 719303.

Lib/plat-mac/buildtools.py

index 6e6396d35c08e11822e91087239114a720b4f84f..bebab194b3bd50bd9222a8d4ff6717e430a80fb2 100644 (file)
@@ -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: