diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2003-04-22 14:33:48 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2003-04-22 14:33:48 (GMT) |
commit | d69b74453192bed078946fbe0f2b06489a118121 (patch) | |
tree | 42688275c46fb558c58467429e0dd529b63e06d1 /Lib/plat-mac | |
parent | 03e929e7e010027917e6dc2716c364313d4833ce (diff) | |
download | cpython-d69b74453192bed078946fbe0f2b06489a118121.zip cpython-d69b74453192bed078946fbe0f2b06489a118121.tar.gz cpython-d69b74453192bed078946fbe0f2b06489a118121.tar.bz2 |
If not icon file is specified use the default Python Applet icons.
Fixes 719303.
Diffstat (limited to 'Lib/plat-mac')
-rw-r--r-- | Lib/plat-mac/buildtools.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/plat-mac/buildtools.py b/Lib/plat-mac/buildtools.py index 6e6396d..bebab19 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: |