Skip to content

Commit

Permalink
having showenv script handle any virtualenv
Browse files Browse the repository at this point in the history
  • Loading branch information
elreydetoda committed Dec 29, 2020
1 parent b6d7dfe commit 5b9a133
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions algo-showenv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ fi
# The Python version might be useful to know.
if [[ -x ./.env/bin/python3 ]]; then
./.env/bin/python3 --version 2>&1
elif [[ -x "${VIRTUAL_ENV}/bin/python3" ]]; then
"${VIRTUAL_ENV}"/bin/python3 --version 2>&1
elif [[ -f ./algo ]]; then
echo ".env/bin/python3 not found: has 'python3 -m virtualenv ...' been run?"
fi
Expand Down

0 comments on commit 5b9a133

Please sign in to comment.