Skip to content

Commit a0d2bc4

Browse files
committed
updated .envrc
1 parent 95e3fae commit a0d2bc4

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.envrc

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,18 @@ set -euo pipefail
3535

3636
export COMPOSE_PROJECT_NAME="pytools"
3737

38-
venv="$PWD/venv"
39-
40-
if [ -f "$venv/bin/activate" ]; then
41-
echo
42-
echo "Local virtualenv directory found in: $venv"
43-
echo
44-
echo "Activating Virtualenv inside the directory: $venv"
45-
46-
# shellcheck disable=SC1091
47-
source "$venv/bin/activate"
48-
echo
49-
fi
38+
for venv in "$PWD/venv" "$HOME/venv"; do
39+
if [ -f "$venv/bin/activate" ]; then
40+
echo
41+
echo "Virtualenv directory found in: $venv"
42+
echo
43+
echo "Activating Virtualenv inside the directory: $venv"
44+
45+
# shellcheck disable=SC1091
46+
source "$venv/bin/activate"
47+
echo
48+
fi
49+
done
5050

5151
# read .env too
5252
#dotenv

0 commit comments

Comments
 (0)