Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-02-07 08:04:12 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-02-07 08:04:12 +0400
commit8d47c2a2086251cc329f7d11ca4b102022e225da (patch)
tree9d255dc8aabffb9f9a24c78f216d30c149051228 /source/tests
parent4b8fe80e6e5c62247f38dbfcf93c46246e719652 (diff)
fix for regression in bpy-api, python context passed to operators couldn't override collections.
Diffstat (limited to 'source/tests')
-rw-r--r--source/tests/batch_import.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/tests/batch_import.py b/source/tests/batch_import.py
index 77595bd091f..a2c5fb59055 100644
--- a/source/tests/batch_import.py
+++ b/source/tests/batch_import.py
@@ -134,8 +134,7 @@ def batch_import(operator="",
print("\tSaving: %r" % fout_blend)
fout_dir = os.path.dirname(fout_blend)
- if not os.path.exists(fout_dir):
- os.makedirs(fout_dir)
+ os.makedirs(fout_dir, exist_ok=True)
bpy.ops.wm.save_as_mainfile(filepath=fout_blend)