From d59895395684f63dd9346ba35e9060bc46a99c8d Mon Sep 17 00:00:00 2001 From: Paul Daniel Date: Fri, 11 Feb 2022 12:18:32 +0000 Subject: [PATCH] fix str matching --- helpers/files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/files.py b/helpers/files.py index 60211b0..32ac0f1 100644 --- a/helpers/files.py +++ b/helpers/files.py @@ -22,7 +22,7 @@ def match_search_str_in_dir(search_str: str, dir: Path) -> Path: if not matching_files: raise ValueError(f"No matches found for search string {search_str} (looking in {dir}).") - return dir / matching_files[0] + return matching_files[0] def save_structure(obj: Any, name: str, path: Path, overwrite: bool = True) -> None: