Skip to content

Commit

Permalink
try specifying full path to z3
Browse files Browse the repository at this point in the history
  • Loading branch information
0xkarmacoma committed Jan 18, 2025
1 parent fd6cdf7 commit 71deed9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/halmos/config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import argparse
import os
import re
import shutil
import sys
from collections import OrderedDict
from collections.abc import Callable, Generator
Expand Down Expand Up @@ -441,7 +442,7 @@ class Config:

solver_command: str = arg(
help="use the given command when invoking the solver",
global_default="z3.exe" if os.name == "nt" else "z3",
global_default=shutil.which("z3"),
metavar="COMMAND",
group=solver,
)
Expand Down

0 comments on commit 71deed9

Please sign in to comment.