change discvoery mask

This commit is contained in:
Daniel 2023-12-11 02:24:34 +01:00
parent 94f03f946b
commit cd00de6d01

View file

@ -128,7 +128,7 @@ class Coordinator:
# make it possible to import modules from recipes_dir
sys.path.append(recipes_dir.as_posix())
for module_path in recipes_dir.rglob("*/runner*.py"):
for module_path in recipes_dir.rglob("*/runner_*.py"):
rel_path = module_path.relative_to(recipes_dir).as_posix().replace("/", ".").replace(".py", "")
module = importlib.import_module(rel_path)
runner_class_names = [name for name in dir(module) if runner_discovery_pattern.match(name)]