Skip to content

Commit

Permalink
keep list comprehension, glob already takes care of entries without w…
Browse files Browse the repository at this point in the history
…ildcard
  • Loading branch information
danieldietsch committed Nov 6, 2024
1 parent fb19654 commit 123eb3b
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions benchexec/tools/ultimate.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,16 +475,11 @@ def get_java_installations(self):
"/usr/lib/jvm/java-*-openjdk-amd64/bin/java",
]

candidates_extended = []
for c in candidates:
if "*" in c:
candidates_extended += glob.glob(c)
else:
candidates_extended += [c]
candidates = [c for entry in candidates for c in glob.glob(entry)]
pattern = r'"(\d+\.\d+).*"'

rtr = {}
for c in candidates_extended:
for c in candidates:
candidate = shutil.which(c)
if not candidate:
continue
Expand Down

0 comments on commit 123eb3b

Please sign in to comment.