mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2024-10-26 16:25:10 +03:00
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>
This commit is contained in:
parent
49f0b4c16f
commit
7d14f77224
3
setup.py
3
setup.py
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user