Fix T73798: Error raising exception for local shutil.copytree

This commit is contained in:
Campbell Barton 2020-02-15 10:40:43 +11:00
parent 7d90ff08f3
commit 92a56bbe6a
Notes: blender-bot 2023-02-13 23:29:43 +01:00
Referenced by issue #73838, Mantaflow: Viewport shading of gas changes as "Initial Temperature" is modified.
Referenced by issue #73798, Splash Load Settings should quite gracefully on symbolic links (Windows)
1 changed files with 3 additions and 1 deletions

View File

@ -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 = []