summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Lib/plat-mac/buildtools.py4
1 files changed, 4 insertions, 0 deletions
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: