Skip to content

Commit 7ce92f0

Browse files
authored
fix: select portable environment if detected (#6158)
Signed-off-by: Ettore Di Giacinto <[email protected]>
1 parent 6a4ab3c commit 7ce92f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/python/common/libbackend.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,8 @@ _makeVenvPortable() {
286286
function ensureVenv() {
287287
local interpreter=""
288288

289-
if [ "x${PORTABLE_PYTHON}" == "xtrue" ]; then
289+
if [ "x${PORTABLE_PYTHON}" == "xtrue" ] || [ -e "$(_portable_python)" ]; then
290+
echo "Using portable Python"
290291
ensurePortablePython
291292
interpreter="$(_portable_python)"
292293
else

0 commit comments

Comments
 (0)