Skip to content

Commit 46ded74

Browse files
committed
v1.0.1 working for pyinstaller
1 parent 847088b commit 46ded74

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed
File renamed without changes.

log-O.exe

16.9 MB
Binary file not shown.

main.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# The app will then add the logo image to each image and save it in the destination folder.
33

44
import os
5+
import sys
56

67
import tkinter as tk
78
from tkinter import filedialog
@@ -14,7 +15,11 @@
1415

1516
root = tk.Tk(screenName='Log(O)', baseName='Log(O)', className='Log(O)', useTk=1)
1617
root.minsize(500, 150)
17-
root.iconbitmap('home_icon.ico')
18+
if getattr(sys, 'frozen', False):
19+
root.iconbitmap(os.path.join(sys._MEIPASS, 'files/home_icon.ico'))
20+
else :
21+
root.iconbitmap('./files/home_icon.ico')
22+
1823
root.configure(background=deepblue)
1924

2025

0 commit comments

Comments
 (0)