test,tools: use sys.executable instead of hardcoding python3

Thanks to Simon!
This commit is contained in:
Michael Vogt 2023-11-14 09:56:55 +01:00
parent d801ef3958
commit 5c345fb3fa
2 changed files with 3 additions and 2 deletions

View file

@ -3,12 +3,13 @@ import argparse
import contextlib
import os
import subprocess
import sys
import tempfile
def run_osbuild(output_directory, store, cache_max_size, libdir, manifest):
args = [
"python3", "-m", "osbuild",
sys.executable, "-m", "osbuild",
"--export",
"tree",
"--output-directory",