Skip to content

Commit

Permalink
use RTX_ADD_PATH to add VIRTUAL_ENV/bin
Browse files Browse the repository at this point in the history
This makes it possible to use rtx-provided python with pipenv and fixes jdx/mise#897
  • Loading branch information
jdx committed Dec 2, 2023
1 parent afd6032 commit 36ff901
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 2 additions & 1 deletion bin/exec-env
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ setup_pipenv() {
VIRTUAL_ENV=$(pipenv --venv)
fi
PIPENV_ACTIVE=1
export VIRTUAL_ENV PIPENV_ACTIVE
RTX_ADD_PATH="$VIRTUAL_ENV/bin"
export VIRTUAL_ENV PIPENV_ACTIVE RTX_ADD_PATH
}

setup_pipenv
7 changes: 1 addition & 6 deletions bin/list-bin-paths
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,4 @@ set -euo pipefail
# shellcheck source=./utils.sh
source "$RTX_PLUGIN_PATH/bin/utils.sh"

VIRTUAL_ENV="$(pipenv_venv)"
if [ -z "$VIRTUAL_ENV" ]; then
echo "asdf_bin"
else
echo "$VIRTUAL_ENV/bin asdf_bin"
fi
echo "asdf_bin"

0 comments on commit 36ff901

Please sign in to comment.