Skip to content

Commit

Permalink
Fix solver name
Browse files Browse the repository at this point in the history
Solver renamed antares-x.y-solver{.exe} -> antares-solver{.exe}
  • Loading branch information
flomnes committed Mar 14, 2024
1 parent bca6538 commit 6a46e2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/generate_reference.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import argparse
from pathlib import Path
import re

import antares_test_utils as antares_utils
import sys

Expand All @@ -27,7 +27,7 @@ def find_solver(solver):
if solver_path.is_dir():
results = []
for x in solver_path.iterdir():
if x.is_file() and re.match(f"^antares-[0-9]+\.[0-9]+-solver{suffix}$", x.name):
if x.is_file() and (f"antares-solver{suffix}" == x.name):
results.append(x)
assert(len(results) == 1)
return results[0].resolve()
Expand Down

0 comments on commit 6a46e2b

Please sign in to comment.