diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2020-01-27 17:10:48 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2020-01-27 17:12:27 +0300 |
commit | 5d21efcd21cd46c336404d37ebf8e80b6ed77c11 (patch) | |
tree | b1308294849d731faa635b4b9f1a3a8e339e0fe7 /release/scripts | |
parent | 37889011070ff2ec52159690f652238d2b325185 (diff) |
Fix T73409: error deleting preset saved on different drive than Blender install
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/modules/bpy/utils/__init__.py | 5 |
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 |