From 046ddd7dfa3e73886de460c961c86c66192e5e2b Mon Sep 17 00:00:00 2001 From: khramshinr Date: Fri, 5 Apr 2024 14:37:28 +0800 Subject: T5124: Python3 deprecation distutils --- scripts/image-build/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/image-build/utils.py b/scripts/image-build/utils.py index 6906c52d..d50eac57 100644 --- a/scripts/image-build/utils.py +++ b/scripts/image-build/utils.py @@ -19,7 +19,7 @@ import sys import os -from distutils.spawn import find_executable +import shutil # Local modules import defaults @@ -52,7 +52,7 @@ class DependencyChecker(object): def _get_missing_binaries(self, binaries): missing_binaries = [] for b in binaries: - if not find_executable(b): + if not shutil.which(b): missing_binaries.append(b) return missing_binaries -- cgit v1.2.3