Create output directory if it does not exist
This commit is contained in:
parent
5c932a6d08
commit
5a954df12a
1 changed files with 2 additions and 0 deletions
|
@ -36,6 +36,8 @@ def normalize_name(name) :
|
||||||
return name.replace("/", "_").replace("-","").replace(" ","").replace(".","")
|
return name.replace("/", "_").replace("-","").replace(" ","").replace(".","")
|
||||||
|
|
||||||
datadir = os.path.join(outdir,"data")
|
datadir = os.path.join(outdir,"data")
|
||||||
|
if not os.path.exists(outdir) :
|
||||||
|
os.mkdir(outdir)
|
||||||
if not os.path.exists(datadir) :
|
if not os.path.exists(datadir) :
|
||||||
os.mkdir(datadir)
|
os.mkdir(datadir)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue