Skip to content

Commit

Permalink
[main] Merge issue1033.
Browse files Browse the repository at this point in the history
  • Loading branch information
Silvan Sievers committed Aug 18, 2021
2 parents 8eba9ac + ef6417e commit de3c086
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ after the corresponding tracker issues.
- For developers: use RandomNumberGenerator class in VariableOrderFinder
<http://issues.fast-downward.org/issue1032>

- For users: the driver now finds domain files <taskfile>-domain.<ext>
for task files called <taskfile>.<ext>
<http://issues.fast-downward.org/issue1033>


## Fast Downward 20.06

Expand Down
3 changes: 2 additions & 1 deletion driver/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ def find_domain_filename(task_filename):
Find domain filename for the given task using automatic naming rules.
"""
dirname, basename = os.path.split(task_filename)
basename_root, ext = os.path.splitext(basename)

domain_basenames = [
"domain.pddl",
basename[:3] + "-domain.pddl",
basename_root + "-domain" + ext,
"domain_" + basename,
"domain-" + basename,
]
Expand Down

0 comments on commit de3c086

Please sign in to comment.