diff --git a/geruecht/logger.py b/geruecht/logger.py index f63ef04..c428a18 100644 --- a/geruecht/logger.py +++ b/geruecht/logger.py @@ -1,13 +1,15 @@ import logging import logging.config import yaml -from os import path +from os import path, makedirs, getcwd if not path.exists("geruecht/log/debug"): a = path.join(path.curdir, "geruecht", "log", "debug") + makedirs(a) if not path.exists("geruecht/log/info"): b = path.join(path.curdir, "geruecht", "log", "info") + makedirs(b) with open("geruecht/logging.yml", 'rt') as file: