Skip to content

Commit

Permalink
Merge pull request #10 from joshbode/pyproject-root
Browse files Browse the repository at this point in the history
Explicitly specify project root for poetry
  • Loading branch information
jdx authored Mar 30, 2024
2 parents 82d11e3 + 37df872 commit 95e67f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/exec-env
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ setup_virtualenv() {
return
fi
echoerr "mise-poetry: No virtualenv exists. Executing \`poetry install\` to create one."
"$(poetry_bin)" install
VIRTUAL_ENV="$("$(poetry_bin)" env info --path)"
poetry_bin install
VIRTUAL_ENV="$(poetry_bin env info --path)"
fi

POETRY_ACTIVE=1
Expand Down
4 changes: 2 additions & 2 deletions bin/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ echoerr() {
}

poetry_bin() {
echo "$MISE_INSTALL_PATH/bin/poetry"
"$MISE_INSTALL_PATH/bin/poetry" "$@"
}

poetry_venv() {
Expand All @@ -25,6 +25,6 @@ poetry_venv() {
echoerr "mise-poetry: No pyproject.toml found. Execute \`poetry init\` to create \`$pyproject\` first."
return
fi
"$(poetry_bin)" env info --path 2>/dev/null
poetry_bin -C "${pyproject%/*}" env info --path 2>/dev/null
true
}

0 comments on commit 95e67f5

Please sign in to comment.