erstellt verzeichnisse fürs log, falls diese nicht existieren
This commit is contained in:
parent
f1b957c6ea
commit
f4ab34c298
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue