Browse Source

[update] fix #335

jhao 7 years ago
parent
commit
d0ef49a5d6
1 changed files with 3 additions and 0 deletions
  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)
 ROOT_PATH = os.path.join(CURRENT_PATH, os.pardir)
 LOG_PATH = os.path.join(ROOT_PATH, 'log')
 LOG_PATH = os.path.join(ROOT_PATH, 'log')
 
 
+if not os.path.exists(LOG_PATH):
+    os.mkdir(LOG_PATH)
+
 
 
 class LogHandler(logging.Logger):
 class LogHandler(logging.Logger):
     """
     """