From 7219b3921bd6036a6cf94f169799a73cbd7059b7 Mon Sep 17 00:00:00 2001 From: ntzyz Date: Wed, 8 Jul 2026 12:04:21 +0800 Subject: fix: use relative import for user plugin compatibility The absolute import 'from plugins.web.mimo.provider import ...' only works when the plugin is bundled inside hermes-agent's plugins/ directory. When installed as a user plugin to ~/.hermes/plugins/, Python cannot resolve the module path and the plugin fails to load silently. Switch to relative import (from .provider) which works in both locations. --- __init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index c1cd62d..dfdd8b7 100644 --- a/__init__.py +++ b/__init__.py @@ -6,7 +6,7 @@ provider class, ``__init__.py::register(ctx)`` registers an instance. from __future__ import annotations -from plugins.web.mimo.provider import MiMoWebSearchProvider +from .provider import MiMoWebSearchProvider def register(ctx) -> None: -- cgit v1.3.1