修复__file__ not found
This commit is contained in:
parent
2ff5c070cb
commit
6163af704f
@ -1,7 +1,8 @@
|
||||
# encoding: UTF-8
|
||||
|
||||
import sys
|
||||
|
||||
import os
|
||||
import sys
|
||||
import ctypes
|
||||
from datetime import datetime, timedelta, date
|
||||
from time import sleep
|
||||
@ -114,7 +115,7 @@ class NoUiMain(object):
|
||||
|
||||
def run_noui():
|
||||
|
||||
log_file_name = os.path.abspath(os.path.join(os.path.dirname(__file__),
|
||||
log_file_name = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
||||
'logs',
|
||||
u'noUiMain_{0}.log'.format(datetime.now().strftime('%m%d_%H%M'))))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user