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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2020-01-27 17:10:48 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2020-01-27 17:12:27 +0300
commit5d21efcd21cd46c336404d37ebf8e80b6ed77c11 (patch)
treeb1308294849d731faa635b4b9f1a3a8e339e0fe7 /release/scripts/modules/bpy
parent37889011070ff2ec52159690f652238d2b325185 (diff)
Fix T73409: error deleting preset saved on different drive than Blender install
Diffstat (limited to 'release/scripts/modules/bpy')
-rw-r--r--release/scripts/modules/bpy/utils/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/release/scripts/modules/bpy/utils/__init__.py b/release/scripts/modules/bpy/utils/__init__.py
index abe33b0e8ea..ae1e3495cba 100644
--- a/release/scripts/modules/bpy/utils/__init__.py
+++ b/release/scripts/modules/bpy/utils/__init__.py
@@ -486,7 +486,10 @@ def is_path_builtin(path):
):
return True
except FileNotFoundError:
- #The path we tried to look up doesn't exist
+ # The path we tried to look up doesn't exist.
+ pass
+ except ValueError:
+ # Happens on Windows when paths don't have the same drive.
pass
return False