Browse Source

[update] fix #335

jhao 7 năm trước cách đây
mục cha
commit
d0ef49a5d6
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      Util/LogHandler.py

+ 3 - 0
Util/LogHandler.py

@@ -33,6 +33,9 @@ CURRENT_PATH = os.path.dirname(os.path.abspath(__file__))
 ROOT_PATH = os.path.join(CURRENT_PATH, os.pardir)
 LOG_PATH = os.path.join(ROOT_PATH, 'log')
 
+if not os.path.exists(LOG_PATH):
+    os.mkdir(LOG_PATH)
+
 
 class LogHandler(logging.Logger):
     """