From 7ce92f064697107f9896e19106a9f3a64a330040 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Thu, 28 Aug 2025 10:00:54 +0200 Subject: [PATCH] fix: select portable environment if detected (#6158) Signed-off-by: Ettore Di Giacinto --- backend/python/common/libbackend.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/python/common/libbackend.sh b/backend/python/common/libbackend.sh index 3c6c3909b..dc2ac44b9 100644 --- a/backend/python/common/libbackend.sh +++ b/backend/python/common/libbackend.sh @@ -286,7 +286,8 @@ _makeVenvPortable() { function ensureVenv() { local interpreter="" - if [ "x${PORTABLE_PYTHON}" == "xtrue" ]; then + if [ "x${PORTABLE_PYTHON}" == "xtrue" ] || [ -e "$(_portable_python)" ]; then + echo "Using portable Python" ensurePortablePython interpreter="$(_portable_python)" else