pytube / .envrc
nficano's picture
updated envrc
6f8e5d3
raw
history blame contribute delete
368 Bytes
layout_pipenv() {
if [[ ! -f Pipfile ]]; then
echo 'No Pipfile found. Use `pipenv` to create a Pipfile first.' >&2
exit 2
fi
local VENV=$(pipenv --bare --venv 2>/dev/null)
if [[ -z $VENV || ! -d $VENV ]]; then
pipenv install --dev
fi
export VIRTUAL_ENV=$(pipenv --venv)
export PIPENV_ACTIVE=1
PATH_add "$VIRTUAL_ENV/bin"
}
layout pipenv