From d3e75f6fa3b62d8e5125abb6079aa39233508237 Mon Sep 17 00:00:00 2001 From: Yousef Moazzam Date: Tue, 10 Dec 2024 14:47:58 +0000 Subject: [PATCH] Handle different path for httomo methods database file --- httomo_backends/methods_database/query.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/httomo_backends/methods_database/query.py b/httomo_backends/methods_database/query.py index fb08f8f..cf82b51 100644 --- a/httomo_backends/methods_database/query.py +++ b/httomo_backends/methods_database/query.py @@ -65,6 +65,8 @@ def _get_method_info(self, attr: str): ext_package_path = "" if package_name != "httomo": ext_package_path = f"backends/{package_name}/" + else: + ext_package_path = "" yaml_info_path = Path(YAML_DIR, str(ext_package_path), f"{package_name}.yaml") if not yaml_info_path.exists(): err_str = f"The YAML file {yaml_info_path} doesn't exist."