replace distutils find_executable with custom version

This commit is contained in:
iLLiCiTiT 2022-02-28 20:52:21 +01:00
parent 8eddbab503
commit 77232a07ef
4 changed files with 25 additions and 21 deletions

View file

@ -35,8 +35,10 @@ from .python_module_tools import (
modules_from_path,
classes_from_module
)
from .execute import get_linux_launcher_args
from .execute import (
find_executable,
get_linux_launcher_args
)
_logger = None
@ -646,7 +648,7 @@ class ApplicationExecutable:
def _realpath(self):
"""Check if path is valid executable path."""
# Check for executable in PATH
result = distutils.spawn.find_executable(self.executable_path)
result = find_executable(self.executable_path)
if result is not None:
return result