We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95e3fae commit a0d2bc4Copy full SHA for a0d2bc4
.envrc
@@ -35,18 +35,18 @@ set -euo pipefail
35
36
export COMPOSE_PROJECT_NAME="pytools"
37
38
-venv="$PWD/venv"
39
-
40
-if [ -f "$venv/bin/activate" ]; then
41
- echo
42
- echo "Local virtualenv directory found in: $venv"
43
44
- echo "Activating Virtualenv inside the directory: $venv"
45
46
- # shellcheck disable=SC1091
47
- source "$venv/bin/activate"
48
49
-fi
+for venv in "$PWD/venv" "$HOME/venv"; do
+ if [ -f "$venv/bin/activate" ]; then
+ echo
+ echo "Virtualenv directory found in: $venv"
+ echo "Activating Virtualenv inside the directory: $venv"
+
+ # shellcheck disable=SC1091
+ source "$venv/bin/activate"
+ fi
+done
50
51
# read .env too
52
#dotenv
0 commit comments