Create output directory if it does not exist

This commit is contained in:
Antonia 2024-09-06 23:51:03 +02:00
parent 5c932a6d08
commit 5a954df12a

View file

@ -36,6 +36,8 @@ def normalize_name(name) :
return name.replace("/", "_").replace("-","").replace(" ","").replace(".","")
datadir = os.path.join(outdir,"data")
if not os.path.exists(outdir) :
os.mkdir(outdir)
if not os.path.exists(datadir) :
os.mkdir(datadir)