2 export PIPENV_VENV_IN_PROJECT=true
4 # TODO: Remove the copy-n-paste from direnv's stdlib when everybody uses at least
5 # direnv 2.14.0 (i.e. at least Ubuntu bionic)
6 if ! has layout_pipenv; then
8 if [[ ! -f Pipfile ]]; then
9 log_error 'No Pipfile found. Use `pipenv` to create a Pipfile first.'
13 local VENV=$(pipenv --bare --venv 2>/dev/null)
14 if [[ -z $VENV || ! -d $VENV ]]; then
18 export VIRTUAL_ENV=$(pipenv --venv)
19 PATH_add "$VIRTUAL_ENV/bin"
20 export PIPENV_ACTIVE=1