mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
Merge pull request #549 from HollyGurza/T5124
T5124: Python3 deprecation distutils
This commit is contained in:
commit
53fea582e2
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user