summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
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")