Skip to content

Commit

Permalink
compatibility with uv (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveitaly authored Nov 1, 2024
1 parent 431c335 commit 00d4557
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/exec-env
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ set -euo pipefail
source "$MISE_PLUGIN_PATH/bin/utils.sh"

setup_virtualenv() {
# if `uv` is being used, exit early and let the user manage venv activation
if [[ -f "uv.lock" ]]; then
return
fi

VIRTUAL_ENV="$(poetry_venv)"
if [[ -z "$VIRTUAL_ENV" ]]; then
return
Expand Down

0 comments on commit 00d4557

Please sign in to comment.