summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-01-09 23:25:49 +0100
committerJules Laplace <julescarbon@gmail.com>2019-01-09 23:25:49 +0100
commitd2cee907fb43450250b9b9f90c8d90468627122e (patch)
treeefe450a2499c11ffd3ef184e72308676c12a63d2
parentdee739c68aef02bfe20688d45b6154200abfe529 (diff)
, exist_ok=True
-rw-r--r--test.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.py b/test.py
index c668529..db11ee5 100644
--- a/test.py
+++ b/test.py
@@ -47,8 +47,8 @@ def process_dir(dir):
tag = '_'.join([dataset, str(args.L) + 'L', part])
out_path = os.path.join(args.out_dir, 'results', dataset, str(args.L) + 'L', part)
render_path = os.path.join(args.out_dir, 'renders')
- os.makedirs(out_path)
- os.makedirs(render_path)
+ os.makedirs(out_path, exist_ok=True)
+ os.makedirs(render_path, exist_ok=True)
dir_frames = sorted(glob.glob(os.path.join(dir + '*.png')))
print(dir_frames)