Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if os.name == 'nt': #windows fix
- import win32api, win32con
- if getattr(sys, 'frozen', False): #windows path fix
- #os.chdir(sys._MEIPASS)
- exe_path = os.path.dirname(sys.executable)
- elif __file__:
- exe_path = os.path.dirname(__file__)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement