Load the host modules when the registry reads ats.py by path without the repo root on sys.path

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Opus 5.5 committed 2026-09-29 19:44:03 +02:00
1 parent 7f04c10e9e
commit 4fb06191cf
4 files changed
+38 -7

No files matched your search

+7 -5
View File
@@ -1,8 +1,10 @@
"""Drop-in plugins, discovered by `plugin_paths` in `config.yaml`.
A plugin file imports `desk` only — see `tests/test_architecture.py`. This
`__init__.py` makes the directory importable as `plugins.<name>` for the rest
of roledesk (`jobs/pull.py`, `cli.py`, the tests), which the plugin contract
itself never relies on: `desk.sources.registry` finds `ats.py` by path, not
by this package.
A plugin file imports `desk` only — see `tests/test_architecture.py` — and
its own helpers in this directory. This `__init__.py` makes the directory
importable as `plugins.<name>`, for the rest of roledesk (`jobs/pull.py`,
`cli.py`, the tests) and for `ats.py`, whose hosts are the modules of the
package `plugins/atshosts/`. `desk.sources.registry` still finds `ats.py` by
path, not by this package; `ats.py` puts the repo root on `sys.path` itself
when the app has not, so that `plugins.atshosts` imports either way.
"""