Skip to content

Commit

Permalink
Handle different path for httomo methods database file
Browse files Browse the repository at this point in the history
  • Loading branch information
yousefmoazzam committed Dec 10, 2024
1 parent 996c186 commit d3e75f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions httomo_backends/methods_database/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit d3e75f6

Please sign in to comment.