From 0e38d6031f915f2925c8cbf5daca06a04a773b47 Mon Sep 17 00:00:00 2001 From: Luca Framba Date: Wed, 25 Oct 2023 15:20:54 +0200 Subject: [PATCH] fix(python version compatibility): Removed use of root_dir method in glob, introduced in python 3.10 --- up_test_cases/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/up_test_cases/utils.py b/up_test_cases/utils.py index cf041cc28..02afd0450 100644 --- a/up_test_cases/utils.py +++ b/up_test_cases/utils.py @@ -65,11 +65,10 @@ def _get_pddl_test_cases( filter: Optional[Iterable[str]] = None, block: Iterable[str] = tuple(), ) -> Dict[str, TestCase]: - pddl_files = glob("*.pddl", root_dir=pddl_files_path) + pddl_files = glob(os.path.join(pddl_files_path, "*.pddl")) domain_filenames: List[str] = [] problem_filenames: List[str] = [] for filename in pddl_files: - filename = os.path.join(pddl_files_path, filename) if domain_filter in filename: domain_filenames.append(filename) else: