From 8d439d888c697fa97e12cd9c289709d258ffcc35 Mon Sep 17 00:00:00 2001 From: Enderbyte09 Date: Mon, 29 Jan 2024 09:20:02 -0800 Subject: [PATCH] fix bat --- .gitignore | 3 ++- build.bat | 2 +- yayd.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 947a5a1..b783096 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ build/* -dist/* \ No newline at end of file +dist/* +*.spec \ No newline at end of file diff --git a/build.bat b/build.bat index 492b30d..d8c36dd 100644 --- a/build.bat +++ b/build.bat @@ -1 +1 @@ -pyinstaller -w --onefile --icon=yayd.ico --version-file=vf.txt --add-data "yayd.ico" yayd.py \ No newline at end of file +pyinstaller -w --onefile --icon=yayd.ico --version-file=vf.txt --add-data="yayd.ico:file" yayd.py \ No newline at end of file diff --git a/yayd.py b/yayd.py index 33d58a0..d95a0ae 100644 --- a/yayd.py +++ b/yayd.py @@ -35,7 +35,7 @@ def saq(): style.theme_use('vista') root.geometry("500x400") if getattr(sys, 'frozen', False): - root.iconbitmap(os.path.join(sys._MEIPASS, "yayd.ico")) + root.iconbitmap(os.path.join(sys._MEIPASS, "file/yayd.ico")) else: root.iconbitmap("yayd.ico") ent = ttk.Entry(root,width=50)