Skip to content

Commit

Permalink
Explicitly expand tildes in virtualenvs-path
Browse files Browse the repository at this point in the history
  • Loading branch information
connortann committed Feb 11, 2022
1 parent 336b9a7 commit 46d7fcb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions main.sh
Expand Up @@ -27,9 +27,12 @@ else
poetry_=poetry
fi

$poetry_ config virtualenvs.create "${VIRTUALENVS_CREATE}"
$poetry_ config virtualenvs.in-project "${VIRTUALENVS_IN_PROJECT}"
$poetry_ config virtualenvs.path "${VIRTUALENVS_PATH}"
# Expand any "~" in VIRTUALENVS_PATH
VIRTUALENVS_PATH="${VIRTUALENVS_PATH/#\~/$HOME}"

$poetry_ config virtualenvs.create ${VIRTUALENVS_CREATE}
$poetry_ config virtualenvs.in-project ${VIRTUALENVS_IN_PROJECT}
$poetry_ config virtualenvs.path ${VIRTUALENVS_PATH}

config="$($poetry_ config --list)"

Expand Down

0 comments on commit 46d7fcb

Please sign in to comment.