erstellt verzeichnisse fürs log, falls diese nicht existieren

This commit is contained in:
Tim Gröger 2020-06-07 23:43:52 +02:00
parent f1b957c6ea
commit f4ab34c298
1 changed files with 3 additions and 1 deletions

View File

@ -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: