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>2020-02-15 02:40:43 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-02-15 02:40:43 +0300
commit92a56bbe6a985905ab748c29f57ab89977e83f9f (patch)
tree53aeac178c388b5f4f4cab8b83691ac0fd273a98 /release/scripts/startup/bl_operators/userpref.py
parent7d90ff08f3f3d4d66c5357b2e9bf00755ca5178f (diff)
Fix T73798: Error raising exception for local shutil.copytree
Diffstat (limited to 'release/scripts/startup/bl_operators/userpref.py')
-rw-r--r--release/scripts/startup/bl_operators/userpref.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_operators/userpref.py b/release/scripts/startup/bl_operators/userpref.py
index 4cb6ddd3fa3..b1bd879efa5 100644
--- a/release/scripts/startup/bl_operators/userpref.py
+++ b/release/scripts/startup/bl_operators/userpref.py
@@ -52,8 +52,10 @@ def module_filesystem_remove(path_base, module_name):
# This duplicates shutil.copytree from Python 3.8, with the new dirs_exist_ok
# argument that we need. Once we upgrade to 3.8 we can remove this.
def _preferences_copytree(entries, src, dst):
- import shutil
import os
+ import shutil
+ from shutil import Error
+
os.makedirs(dst, exist_ok=True)
errors = []