Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
5d18cc6b
Commit
5d18cc6b
authored
Apr 30, 2010
by
Ronald Oussoren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for issue 8476
parent
c4ae73e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
Mac/BuildScript/build-installer.py
Mac/BuildScript/build-installer.py
+5
-4
No files found.
Mac/BuildScript/build-installer.py
View file @
5d18cc6b
...
...
@@ -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
)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment