Skip to content

Commit

Permalink
Added platform-specific icon extensions.
Browse files Browse the repository at this point in the history
Fixed windows icons for CrossMgrImpinj, SeriesMgr and SprintMgr.
  • Loading branch information
esitarski committed Jul 31, 2024
1 parent 4cc79c6 commit 3025a30
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
Binary file modified CrossMgrImpinj/CrossMgrImpinjImages/CrossMgrImpinj.ico
Binary file not shown.
Binary file modified SeriesMgr/SeriesMgrImages/SeriesMgr.ico
Binary file not shown.
Binary file modified SprintMgr/SprintMgrImages/SprintMgr.ico
Binary file not shown.
7 changes: 6 additions & 1 deletion crossmgr-install.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,11 +346,16 @@ def make_shortcuts( python_exe ):
python_launch_exe = python_exe

def get_ico_file( pyw_file ):
extension = {
'Windows': '.ico',
'Linux': '.png',
'Darwin': '.icns',
}
fname = os.path.basename( pyw_file )
basename = os.path.splitext( fname )[0]
dirname = os.path.dirname( pyw_file )
dirimages = os.path.join( dirname, basename + 'Images' )
return os.path.join( dirimages, basename + ('.ico' if is_windows else '.png') )
return os.path.join( dirimages, basename + extension.get(platform.system(), '.png') )

pyws = sorted( get_pyws(), reverse=True )

Expand Down

0 comments on commit 3025a30

Please sign in to comment.