diff options
author | Ronald Oussoren <ronaldoussoren@mac.com> | 2010-04-30 14:59:42 (GMT) |
---|---|---|
committer | Ronald Oussoren <ronaldoussoren@mac.com> | 2010-04-30 14:59:42 (GMT) |
commit | 309bf3beb377951a36ddb522152e619b6da2302b (patch) | |
tree | 97e24a11fb319f67d676f82bffe5bc03bfe5a66f /Mac/BuildScript/build-installer.py | |
parent | 68ca24b2f9173940ac532d37b8c8cc3e72a07378 (diff) | |
download | cpython-309bf3beb377951a36ddb522152e619b6da2302b.zip cpython-309bf3beb377951a36ddb522152e619b6da2302b.tar.gz cpython-309bf3beb377951a36ddb522152e619b6da2302b.tar.bz2 |
Merged revisions 80653 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80653 | ronald.oussoren | 2010-04-30 16:58:39 +0200 (Fri, 30 Apr 2010) | 2 lines
Fix for issue 8476
........
Diffstat (limited to 'Mac/BuildScript/build-installer.py')
-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 0d0a9b7..277bd6f 100755 --- a/Mac/BuildScript/build-installer.py +++ b/Mac/BuildScript/build-installer.py @@ -1093,13 +1093,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))) |