mirror of https://gitlab.com/cppit/jucipp
3 changed files with 8 additions and 0 deletions
|
After Width: | Height: | Size: 8.7 KiB |
@ -0,0 +1,4 @@ |
|||||||
|
import Cocoa |
||||||
|
import sys |
||||||
|
|
||||||
|
Cocoa.NSWorkspace.sharedWorkspace().setIcon_forFile_options_(Cocoa.NSImage.alloc().initWithContentsOfFile_(sys.argv[1].decode('utf-8')), sys.argv[2].decode('utf-8'), 0) or sys.exit("Unable to set file icon") |
||||||
Loading…
Reference in new issue