diff options
| author | ntzyz <i@ntzyz.io> | 2026-07-08 12:04:21 +0800 |
|---|---|---|
| committer | ntzyz <i@ntzyz.io> | 2026-07-08 12:04:21 +0800 |
| commit | 7219b3921bd6036a6cf94f169799a73cbd7059b7 (patch) | |
| tree | 771e59178e1a8bc397aa5d533b3cceeec23a5296 | |
| parent | 47cd002c030d16868ed698fd2e379edf2461301e (diff) | |
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__.py | 2 |
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: |
