From f6eadaa413f20c1853cf1bea5141560cd5e4b15a Mon Sep 17 00:00:00 2001 From: Kristaps Kaupe Date: Tue, 3 Jan 2023 23:23:07 +0200 Subject: [PATCH] Use same Python executable for subprocesses as for all-lint.py --- test/lint/all-lint.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/lint/all-lint.py b/test/lint/all-lint.py index 34a7b9742a3..c7889796c6c 100755 --- a/test/lint/all-lint.py +++ b/test/lint/all-lint.py @@ -10,11 +10,12 @@ from glob import glob from pathlib import Path from subprocess import run +from sys import executable exit_code = 0 mod_path = Path(__file__).parent for lint in glob(f"{mod_path}/lint-*.py"): - result = run([lint]) + result = run([executable, lint]) if result.returncode != 0: print(f"^---- failure generated from {lint.split('/')[-1]}") exit_code |= result.returncode