diff --git a/backend/python/common/libbackend.sh b/backend/python/common/libbackend.sh index 3c6c3909b3b4..dc2ac44b9741 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