diff --git a/scripts/wolfram_verify.py b/scripts/wolfram_verify.py index 6cadb800..cfe5d6cc 100644 --- a/scripts/wolfram_verify.py +++ b/scripts/wolfram_verify.py @@ -54,7 +54,10 @@ def run_port_tests(): for name, cmd, wd, env_add in ports: exe = cmd[0] - if not shutil.which(exe.split()[0] if '/' in exe else exe): + # Look in PATH that includes common Nix/cargo locations + search_path = os.environ.get("PATH", "") + ":/home/allaun/.nix-profile/bin:/home/allaun/.cargo/bin:/usr/local/go/bin" + exe_path = shutil.which(exe.split()[0] if '/' in exe else exe, path=search_path) + if not exe_path: results[name] = {"passed": False, "skipped": True, "reason": f"{exe} not found"} continue try: