File tree 3 files changed +9
-11
lines changed
3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 4
4
build
5
5
dist
6
6
env
7
+
7
8
ffprobe
9
+ ffprobe.exe
8
10
9
11
.DS_Store
10
12
.pylintrc
Original file line number Diff line number Diff line change @@ -415,17 +415,13 @@ def resource_path(relative_path):
415
415
return os .path .join (sys ._MEIPASS , relative_path )
416
416
return os .path .join (os .path .abspath ('.' ), relative_path )
417
417
418
- try :
419
- # Windows only(for icon)???
420
- from PyQt5 .QtWinExtras import QtWin
421
- myappid = 'mycompany.myproduct.subproduct.version'
422
- QtWin .setCurrentProcessExplicitAppUserModelID (myappid )
423
- except ImportError :
424
- pass
425
-
426
418
427
419
if __name__ == '__main__' :
428
420
app = QApplication (sys .argv )
429
- app .setWindowIcon (QIcon ('GTD_icon.ico' )) # MS Windows only
421
+ try :
422
+ # MS Windows only
423
+ app .setWindowIcon (QIcon (resource_path ('images/GTD_icon.ico' )))
424
+ except :
425
+ pass
430
426
window = MainWindow ()
431
427
sys .exit (app .exec_ ())
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ block_cipher = None
5
5
a = Analysis (['main.py' ],
6
6
pathex = ['C:\\ Users\\ Dan\\ Downloads\\ total_duration-master\\ total_duration-master' ],
7
7
binaries = [('./ffprobe.exe' , '.' )],
8
- datas = [('GTD_icon.ico' , '.' )],
8
+ datas = [('images\ GTD_icon.ico' , '.' )],
9
9
hiddenimports = [],
10
10
hookspath = [],
11
11
runtime_hooks = [],
@@ -32,5 +32,5 @@ exe = EXE(pyz,
32
32
upx_exclude = [],
33
33
runtime_tmpdir = None ,
34
34
console = False ,
35
- icon = 'GTD_icon.ico' )
35
+ icon = 'images\ GTD_icon.ico' )
36
36
You can’t perform that action at this time.
0 commit comments