diff options
| author | navanchauhan <navanchauhan@gmail.com> | 2023-06-01 21:58:14 -0600 | 
|---|---|---|
| committer | navanchauhan <navanchauhan@gmail.com> | 2023-06-01 21:58:14 -0600 | 
| commit | c514aa5a1014c1fe3355ace7b88a5a6fe072bc84 (patch) | |
| tree | 9fe829200b8fbca009fe28927d3bd679f5df66f9 /main.py | |
| parent | 845d992e9c1f03441d5df9360ea4d118a74f3a9f (diff) | |
fix onefile
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 7 | 
1 files changed, 7 insertions, 0 deletions
| @@ -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") | 
