From 6163af704f11fcfb46edd49cf72c1dc1655e8cef Mon Sep 17 00:00:00 2001 From: msincenselee Date: Wed, 3 May 2017 18:40:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=5F=5Ffile=5F=5F=20not=20foun?= =?UTF-8?q?d?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vn.trader/noUiMain.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vn.trader/noUiMain.py b/vn.trader/noUiMain.py index 14b02e1b..edfa9b17 100644 --- a/vn.trader/noUiMain.py +++ b/vn.trader/noUiMain.py @@ -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'))))