From 795e7431ffafa0cc1257d64c5fdd0f2c3cb6d841 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Tue, 7 Oct 2025 18:22:06 +0200 Subject: environment: move tool detection functions to a new module Signed-off-by: Paolo Bonzini --- mesonbuild/scripts/coverage.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mesonbuild/scripts/coverage.py') diff --git a/mesonbuild/scripts/coverage.py b/mesonbuild/scripts/coverage.py index a4dfebfb9..f51536358 100644 --- a/mesonbuild/scripts/coverage.py +++ b/mesonbuild/scripts/coverage.py @@ -3,7 +3,7 @@ from __future__ import annotations -from mesonbuild import environment, mesonlib +from mesonbuild import tooldetect, mesonlib import argparse, re, sys, os, subprocess, pathlib, stat, shutil import typing as T @@ -16,11 +16,11 @@ def coverage(outputs: T.List[str], source_root: str, subproject_root: str, build if gcovr_exe == '': gcovr_exe = None else: - gcovr_exe, gcovr_version = environment.detect_gcovr(gcovr_exe) + gcovr_exe, gcovr_version = tooldetect.detect_gcovr(gcovr_exe) if llvm_cov_exe == '' or shutil.which(llvm_cov_exe) is None: llvm_cov_exe = None - lcov_exe, lcov_version, genhtml_exe = environment.detect_lcov_genhtml() + lcov_exe, lcov_version, genhtml_exe = tooldetect.detect_lcov_genhtml() # load config files for tools if available in the source tree # - lcov requires manually specifying a per-project config -- cgit v1.2.3