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/startup/bl_operators/wm.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/startup/bl_operators/wm.py')
-rw-r--r--release/scripts/startup/bl_operators/wm.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_operators/wm.py b/release/scripts/startup/bl_operators/wm.py
index 902cfdd418b..6ac61a9f5e7 100644
--- a/release/scripts/startup/bl_operators/wm.py
+++ b/release/scripts/startup/bl_operators/wm.py
@@ -1740,8 +1740,7 @@ class WM_OT_addon_install(Operator):
return {'CANCELLED'}
# create dir is if missing.
- if not os.path.exists(path_addons):
- os.makedirs(path_addons)
+ os.makedirs(path_addons, exist_ok=True)
# Check if we are installing from a target path,
# doing so causes 2+ addons of same name or when the same from/to