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

This commit is contained in:
ehendrix23
2020-07-29 11:50:09 -06:00
committed by Davide Varricchio
parent a991d6f131
commit 53acc1b41e

View File

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