mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-08 10:31:50 -05:00
Use same Python executable for subprocesses as for all-lint.py
This commit is contained in:
parent
f301bf52ab
commit
f6eadaa413
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue