outputpath: use makedirs instead of mkdir

This commit is contained in:
Bonta-kun 2020-01-10 07:25:16 +01:00
parent 39a07a0624
commit 239ea0f67c
1 changed files with 1 additions and 4 deletions

View File

@ -24,10 +24,7 @@ __version__ = '0.6.3-pre'
def main(args, seed=None):
if args.outputpath:
try:
os.mkdir(args.outputpath)
except OSError:
pass
os.makedirs(args.outputpath, exist_ok=True)
output_path.cached_path = args.outputpath
start = time.process_time()