summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorntzyz <i@ntzyz.io>2026-07-08 12:04:21 +0800
committerntzyz <i@ntzyz.io>2026-07-08 12:04:21 +0800
commit7219b3921bd6036a6cf94f169799a73cbd7059b7 (patch)
tree771e59178e1a8bc397aa5d533b3cceeec23a5296
parent47cd002c030d16868ed698fd2e379edf2461301e (diff)
fix: use relative import for user plugin compatibilityHEADmaster
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.
-rw-r--r--__init__.py2
1 files changed, 1 insertions, 1 deletions
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: