Update run-in-env.sh (#36577)

This commit is contained in:
ehendrix23 2020-07-29 11:50:09 -06:00 committed by GitHub
parent 1d01a5ed7b
commit b916eb6cf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,10 +9,12 @@ if [ -s .python-version ]; then
fi
# other common virtualenvs
my_path=$(git rev-parse --show-toplevel)
for venv in venv .venv .; do
if [ -f $venv/bin/activate ]; then
. $venv/bin/activate
fi
if [ -f "${my_path}/${venv}/bin/activate" ]; then
. "${my_path}/${venv}/bin/activate"
fi
done
exec "$@"