mirror of
https://github.com/python/cpython.git
synced 2025-09-16 05:36:29 +00:00
Port of revision 51902 in release25-maint to the trunk
This commit is contained in:
parent
43fd99c8f8
commit
3564c4622f
2 changed files with 3 additions and 1 deletions
|
@ -945,6 +945,7 @@ def setIcon(filePath, icnsPath):
|
|||
ref, isDirectory = Carbon.File.FSPathMakeRef(filePath)
|
||||
|
||||
if isDirectory:
|
||||
return
|
||||
tmpPath = os.path.join(filePath, "Icon\r")
|
||||
if not os.path.exists(tmpPath):
|
||||
fp = open(tmpPath, 'w')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue