We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d6290cb + d6b1693 commit 7d81a7aCopy full SHA for 7d81a7a
1 file changed
adapters/wasmtime.py
@@ -1,11 +1,8 @@
1
-import subprocess
2
import os
3
import shlex
4
-import sys
+import subprocess
5
from pathlib import Path
6
from typing import Dict, List, Tuple
7
-import importlib
8
-
9
10
# shlex.split() splits according to shell quoting rules
11
WASMTIME = shlex.split(os.getenv("WASMTIME", "wasmtime"))
@@ -55,7 +52,7 @@ def compute_argv(test_path: str,
55
52
# options, so that the user can override our choices.
56
53
def _add_wasi_version_options(argv: List[str], wasi_version: str, proposals: List[str]) -> None:
57
54
splice_pos = len(WASMTIME)
58
- while splice_pos > 1 and args[splice_pos-1].startswith("-"):
+ while splice_pos > 1 and argv[splice_pos - 1].startswith("-"):
59
splice_pos -= 1
60
match wasi_version:
61
case "wasm32-wasip1":
0 commit comments