Skip to content

Commit

Permalink
fix(python version compatibility): Removed use of root_dir method in …
Browse files Browse the repository at this point in the history
…glob, introduced in python 3.10
  • Loading branch information
Framba-Luca committed Oct 25, 2023
1 parent a73c616 commit 0e38d60
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions up_test_cases/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0e38d60

Please sign in to comment.