From 239ea0f67c4b7a3bcbc77ec826bce41038892792 Mon Sep 17 00:00:00 2001 From: Bonta-kun <40473493+Bonta0@users.noreply.github.com> Date: Fri, 10 Jan 2020 07:25:16 +0100 Subject: [PATCH] outputpath: use makedirs instead of mkdir --- Main.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Main.py b/Main.py index 3b21c512..5d5b974a 100644 --- a/Main.py +++ b/Main.py @@ -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()