This commit is contained in:
Félix David 2025-12-23 16:29:46 +01:00 committed by GitHub
commit 48125fbfc8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -67,6 +67,8 @@ def find_executable(executable):
Union[str, None]: Full path to executable with extension which was
found otherwise None.
"""
# Expand user and environment variables
executable = os.path.expandvars(os.path.expanduser(executable))
# Skip if passed path is file
if is_file_executable(executable):