Commit 229caa36 by user

Remake get path of logfile

parent 4e27fe43
......@@ -6,7 +6,7 @@ import sys
class Log:
def __init__(self):
self.logfile = "{}/{}_main.log".format(os.getcwd(), datetime.datetime.now().strftime("%m_%d_%Y %H_%M_%S"))
self.logfile = "{}/{}_main.log".format(os.path.dirname(sys.argv[0]), datetime.datetime.now().strftime("%m_%d_%Y %H_%M_%S"))
self.log = logging.getLogger("my_log")
self.log.setLevel(logging.INFO)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment