diff options
author | Ronald Oussoren <ronaldoussoren@mac.com> | 2010-04-30 14:58:39 (GMT) |
---|---|---|
committer | Ronald Oussoren <ronaldoussoren@mac.com> | 2010-04-30 14:58:39 (GMT) |
commit | 5d18cc6b46c89f1a898e0f1f19730dd87b2d58d9 (patch) | |
tree | c6dcb95250e22402da2a2c4a0aabf879241565b2 /Mac | |
parent | c4ae73e5f705eb7abe267e9424d25a232d89f7c1 (diff) | |
download | cpython-5d18cc6b46c89f1a898e0f1f19730dd87b2d58d9.zip cpython-5d18cc6b46c89f1a898e0f1f19730dd87b2d58d9.tar.gz cpython-5d18cc6b46c89f1a898e0f1f19730dd87b2d58d9.tar.bz2 |
Fix for issue 8476
Diffstat (limited to 'Mac')
-rwxr-xr-x | Mac/BuildScript/build-installer.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Mac/BuildScript/build-installer.py b/Mac/BuildScript/build-installer.py index bab86d3..b73cc5e 100755 --- a/Mac/BuildScript/build-installer.py +++ b/Mac/BuildScript/build-installer.py @@ -1099,13 +1099,14 @@ def setIcon(filePath, icnsPath): Set the custom icon for the specified file or directory. """ - toolPath = os.path.join(os.path.dirname(__file__), "seticon.app/Contents/MacOS/seticon") - dirPath = os.path.dirname(__file__) + dirPath = os.path.normpath(os.path.dirname(__file__)) + toolPath = os.path.join(dirPath, "seticon.app/Contents/MacOS/seticon") if not os.path.exists(toolPath) or os.stat(toolPath).st_mtime < os.stat(dirPath + '/seticon.m').st_mtime: # NOTE: The tool is created inside an .app bundle, otherwise it won't work due # to connections to the window server. - if not os.path.exists('seticon.app/Contents/MacOS'): - os.makedirs('seticon.app/Contents/MacOS') + appPath = os.path.join(dirPath, "seticon.app/Contents/MacOS") + if not os.path.exists(appPath): + os.makedirs(appPath) runCommand("cc -o %s %s/seticon.m -framework Cocoa"%( shellQuote(toolPath), shellQuote(dirPath))) |