summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authornavanchauhan <navanchauhan@gmail.com>2023-06-01 21:58:14 -0600
committernavanchauhan <navanchauhan@gmail.com>2023-06-01 21:58:14 -0600
commitc514aa5a1014c1fe3355ace7b88a5a6fe072bc84 (patch)
tree9fe829200b8fbca009fe28927d3bd679f5df66f9 /main.py
parent845d992e9c1f03441d5df9360ea4d118a74f3a9f (diff)
fix onefile
Diffstat (limited to 'main.py')
-rw-r--r--main.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/main.py b/main.py
index c07ed58..96f86c0 100644
--- a/main.py
+++ b/main.py
@@ -10,6 +10,8 @@ import sv_ttk
import darkdetect
import os
+import sys
+
from os import path
from docx import Document
@@ -604,6 +606,11 @@ if __name__ == "__main__":
traces_sample_rate=1.0
)
root = tk.Tk()
+ wd = os.getcwd()
+ try:
+ os.chdir(sys._MEIPASS)
+ except AttributeError:
+ os.chdir(wd)
print(os.listdir())
app = CompanySelector(root)
sv_ttk.set_theme("dark")