Fix unhandled permissions exception in bpy.utils.is_path_builtin

An excepting would be raised when the parent/child paths didn't
have permissions to access.
This commit is contained in:
Campbell Barton
2024-08-15 11:17:42 +10:00
parent 5f9be675f0
commit f42713ab1d

View File

@@ -602,6 +602,9 @@ def _is_path_parent_of(parent_path, path):
except ValueError:
# Happens on Windows when paths don't have the same drive.
pass
except PermissionError:
# When either of the paths don't have permissions to access.
pass
return False