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:02:24 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-02-07 08:02:24 +0400
commit4b8fe80e6e5c62247f38dbfcf93c46246e719652 (patch)
tree9906ddaf51c55acd1f49f6369b1904179a66ddf5 /release/scripts/modules/bpy_extras/io_utils.py
parent0152d11e0116251b3ac91cec85141988bae938ec (diff)
code cleanup: use exist_ok keyword arg to os.makedirs() rather then checking if the dir exists first.
Diffstat (limited to 'release/scripts/modules/bpy_extras/io_utils.py')
-rw-r--r--release/scripts/modules/bpy_extras/io_utils.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/release/scripts/modules/bpy_extras/io_utils.py b/release/scripts/modules/bpy_extras/io_utils.py
index 21bad5ec1e4..dfb6c46ef87 100644
--- a/release/scripts/modules/bpy_extras/io_utils.py
+++ b/release/scripts/modules/bpy_extras/io_utils.py
@@ -436,10 +436,7 @@ def path_reference_copy(copy_set, report=print):
pass
else:
dir_to = os.path.dirname(file_dst)
-
- if not os.path.isdir(dir_to):
- os.makedirs(dir_to)
-
+ os.makedirs(dir_to, exist_ok=True)
shutil.copy(file_src, file_dst)