From eceaad21ae365d98955355d300fbc1cc25012dd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20David?= Date: Fri, 17 Jan 2025 16:53:48 +0100 Subject: [PATCH] Feature: Executable path expand user and standard env var Fix #1091 --- client/ayon_core/lib/vendor_bin_utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/ayon_core/lib/vendor_bin_utils.py b/client/ayon_core/lib/vendor_bin_utils.py index 41654476c2..c07737d16c 100644 --- a/client/ayon_core/lib/vendor_bin_utils.py +++ b/client/ayon_core/lib/vendor_bin_utils.py @@ -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):