From f42713ab1d1163fae65cb265fd7b5e2d261aab60 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 15 Aug 2024 11:17:42 +1000 Subject: [PATCH] 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. --- scripts/modules/bpy/utils/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/modules/bpy/utils/__init__.py b/scripts/modules/bpy/utils/__init__.py index 86e7ee54a4b..54ac68002e0 100644 --- a/scripts/modules/bpy/utils/__init__.py +++ b/scripts/modules/bpy/utils/__init__.py @@ -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