The functionality of distutils.spawn.find_executable which searches the PATH for the executable path of a given requested executable name is easily replaced in-line with shutil.which which has the same functionality.
Because distutils is now deprecated and removed in Python 3.12 it is better to replace this single functionality with shutil.
This will fix #66 by removing distutils from the equation.
The functionality of
distutils.spawn.find_executable
which searches the PATH for the executable path of a given requested executable name is easily replaced in-line withshutil.which
which has the same functionality.Because distutils is now deprecated and removed in Python 3.12 it is better to replace this single functionality with shutil.
This will fix #66 by removing distutils from the equation.