diff --git a/scripts/modules/bpy_types.py b/scripts/modules/bpy_types.py index 65cf4b02e75..209f7ed050c 100644 --- a/scripts/modules/bpy_types.py +++ b/scripts/modules/bpy_types.py @@ -1316,7 +1316,8 @@ class UserExtensionRepo(StructRNA): if directory := self.directory: return directory import os - return os.path.join(_bpy.utils.user_resource('SCRIPTS', path="extensions"), self.module) + import bpy + return os.path.join(bpy.utils.user_resource('SCRIPTS', path="extensions"), self.module) class HydraRenderEngine(RenderEngine):