outputpath: use makedirs instead of mkdir
This commit is contained in:
parent
39a07a0624
commit
239ea0f67c
5
Main.py
5
Main.py
|
@ -24,10 +24,7 @@ __version__ = '0.6.3-pre'
|
||||||
|
|
||||||
def main(args, seed=None):
|
def main(args, seed=None):
|
||||||
if args.outputpath:
|
if args.outputpath:
|
||||||
try:
|
os.makedirs(args.outputpath, exist_ok=True)
|
||||||
os.mkdir(args.outputpath)
|
|
||||||
except OSError:
|
|
||||||
pass
|
|
||||||
output_path.cached_path = args.outputpath
|
output_path.cached_path = args.outputpath
|
||||||
|
|
||||||
start = time.process_time()
|
start = time.process_time()
|
||||||
|
|
Loading…
Reference in New Issue