Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def __init__(self, appname):
- import os, traceback, time
- self.traceback = traceback
- self.os = os
- self.time = time
- if getattr(sys, 'frozen', False): #windows path fix
- self.exe = self.os.path.dirname(sys.executable)
- elif __file__:
- self.exe = self.os.path.dirname(__file__)
- if not os.path.exists(os.path.dirname("~/%s/" %appname)):
- os.makedirs(str("~/%s/" %appname)
- self.fname = "~/%s/debug.log" %appname
- self.logfile = None
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement