diff options
| author | Daniel P. Berrangé <berrange@redhat.com> | 2022-03-23 10:49:16 +0000 |
|---|---|---|
| committer | Daniel P. Berrangé <berrange@redhat.com> | 2022-04-21 12:34:06 +0100 |
| commit | 7d14f77224d7482c00b78a5ad1539e28f0feaefb (patch) | |
| tree | b579293986eaaabd6b2ab543c8905918b4f0cd1d | |
| parent | 49f0b4c16fd2472dfbd939f8cb52096061ed9094 (diff) | |
| download | libvirt-python-7d14f77224d7482c00b78a5ad1539e28f0feaefb.tar.gz | |
setup: replace distutils.spawn.find_executable with shutils
The distutils.spawn.find_executable method has no compelling benefit
over using the standard python shutils module.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
| -rwxr-xr-x | setup.py | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -7,7 +7,6 @@ from distutils.dir_util import remove_tree from distutils.util import get_platform from distutils.spawn import spawn from distutils.errors import DistutilsExecError -import distutils import sys import os @@ -275,7 +274,7 @@ class my_test(Command): ] for binary in binaries: - path = distutils.spawn.find_executable(binary) + path = shutil.which(binary) if path is not None: return path |
