Skip to content
Snippets Groups Projects
Unverified Commit fc4ea774 authored by Matthias Alphart's avatar Matthias Alphart Committed by GitHub
Browse files

Fix run-in-env script for not running in venv (#117961)

parent cd14d9b0
Branches
Tags
No related merge requests found
......@@ -13,7 +13,7 @@ if [ -s .python-version ]; then
export PYENV_VERSION
fi
if [ -n "${VIRTUAL_ENV}" ] && [ -f "${VIRTUAL_ENV}/bin/activate" ]; then
if [ -n "${VIRTUAL_ENV-}" ] && [ -f "${VIRTUAL_ENV}/bin/activate" ]; then
. "${VIRTUAL_ENV}/bin/activate"
else
# other common virtualenvs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment