From a0d2bc4abf677d283f992db3bab72461e888943f Mon Sep 17 00:00:00 2001 From: Hari Sekhon Date: Tue, 4 Jun 2024 09:19:34 +0200 Subject: [PATCH] updated .envrc --- .envrc | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.envrc b/.envrc index 6fa553de..96d3b5c0 100644 --- a/.envrc +++ b/.envrc @@ -35,18 +35,18 @@ set -euo pipefail export COMPOSE_PROJECT_NAME="pytools" -venv="$PWD/venv" - -if [ -f "$venv/bin/activate" ]; then - echo - echo "Local virtualenv directory found in: $venv" - echo - echo "Activating Virtualenv inside the directory: $venv" - - # shellcheck disable=SC1091 - source "$venv/bin/activate" - echo -fi +for venv in "$PWD/venv" "$HOME/venv"; do + if [ -f "$venv/bin/activate" ]; then + echo + echo "Virtualenv directory found in: $venv" + echo + echo "Activating Virtualenv inside the directory: $venv" + + # shellcheck disable=SC1091 + source "$venv/bin/activate" + echo + fi +done # read .env too #dotenv