Simplify code
This piece of code ends up just extracting `appname` from `iconset_dir`.
This commit is contained in:
parent
85fc0a59b1
commit
97cae0e355
1 changed files with 1 additions and 1 deletions
2
setup.py
2
setup.py
|
|
@ -861,7 +861,7 @@ def create_macos_app_icon(where: str = 'Resources') -> None:
|
|||
iconset_dir = os.path.abspath(os.path.join('logo', appname + '.iconset'))
|
||||
subprocess.check_call([
|
||||
'iconutil', '-c', 'icns', iconset_dir, '-o',
|
||||
os.path.join(where, os.path.basename(iconset_dir).partition('.')[0] + '.icns')
|
||||
os.path.join(where, appname + '.icns')
|
||||
])
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue