Skip to content

Commit 5b9a133

Browse files
committed
having showenv script handle any virtualenv
1 parent b6d7dfe commit 5b9a133

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

algo-showenv.sh

+2
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ fi
7070
# The Python version might be useful to know.
7171
if [[ -x ./.env/bin/python3 ]]; then
7272
./.env/bin/python3 --version 2>&1
73+
elif [[ -x "${VIRTUAL_ENV}/bin/python3" ]]; then
74+
"${VIRTUAL_ENV}"/bin/python3 --version 2>&1
7375
elif [[ -f ./algo ]]; then
7476
echo ".env/bin/python3 not found: has 'python3 -m virtualenv ...' been run?"
7577
fi

0 commit comments

Comments
 (0)