Browse Source

Merge pull request #336 from jhao104/develop

[update] fix #335
J_hao104 7 năm trước cách đây
mục cha
commit
8235ac6107
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):
     """