Browse Source

change directory cretors logs

Alex Sidorov 1 year ago
parent
commit
96a2986b43
1 changed files with 2 additions and 2 deletions
  1. 2 2
      logger.py

+ 2 - 2
logger.py

@@ -2,11 +2,11 @@ import logging
 # import logging.config
 import os
 from datetime import datetime
-
+import appdirs
 
 def create_logger():
     
-    path_dir_log = os.path.join(os.path.dirname(__file__), 'logs')
+    path_dir_log = os.path.join(appdirs.user_log_dir(), 'propusk')
 
     if not os.path.exists(path_dir_log):
         os.mkdir(path_dir_log)