From 7c488608d659bdc0c42eb8632db4cd7f188bf1eb Mon Sep 17 00:00:00 2001 From: gzagatti Date: Tue, 27 Feb 2024 12:44:48 +0100 Subject: [PATCH] fix pyenv layout --- direnv/direnvrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direnv/direnvrc b/direnv/direnvrc index f1e176c..322f0cd 100644 --- a/direnv/direnvrc +++ b/direnv/direnvrc @@ -2,7 +2,7 @@ layout_pyenv() { if [ -n "$(which pyenv)" ]; then local virtualenv=$(realpath "$(pyenv root)/versions/$1") if [ -d "$virtualenv" ]; then - source "$(dirname $(dirname "$virtualenv"))/bin/activate" + source activate $1 export PYENV_VERSION="$1" export PYENV_VIRTUAL_ENV="$virtualenv" export VIRTUAL_ENV="$virtualenv"