Skip to content

Commit

Permalink
fix pyenv layout
Browse files Browse the repository at this point in the history
  • Loading branch information
gzagatti committed Feb 27, 2024
1 parent f584909 commit 7c48860
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion direnv/direnvrc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7c48860

Please sign in to comment.