Skip to content

Commit f6eadaa

Browse files
committed
Use same Python executable for subprocesses as for all-lint.py
1 parent f301bf5 commit f6eadaa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: test/lint/all-lint.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@
1010
from glob import glob
1111
from pathlib import Path
1212
from subprocess import run
13+
from sys import executable
1314

1415
exit_code = 0
1516
mod_path = Path(__file__).parent
1617
for lint in glob(f"{mod_path}/lint-*.py"):
17-
result = run([lint])
18+
result = run([executable, lint])
1819
if result.returncode != 0:
1920
print(f"^---- failure generated from {lint.split('/')[-1]}")
2021
exit_code |= result.returncode

0 commit comments

Comments
 (0)