diff options
author | Kristaps Kaupe <kristaps@blogiem.lv> | 2023-01-03 23:23:07 +0200 |
---|---|---|
committer | Kristaps Kaupe <kristaps@blogiem.lv> | 2023-01-03 23:23:07 +0200 |
commit | f6eadaa413f20c1853cf1bea5141560cd5e4b15a (patch) | |
tree | d2099a0c6038b91c9ac347028617f3d09b282587 /test | |
parent | f301bf52ab0096dc5d233d89b468885d6a3f12a6 (diff) |
Use same Python executable for subprocesses as for all-lint.py
Diffstat (limited to 'test')
-rwxr-xr-x | test/lint/all-lint.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/lint/all-lint.py b/test/lint/all-lint.py index 34a7b9742a..c7889796c6 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 |