Initialize venv in .envrc
This commit is contained in:
parent
06dc231b73
commit
ecd0ca99c6
1 changed files with 8 additions and 0 deletions
8
.envrc
8
.envrc
|
|
@ -5,3 +5,11 @@ else
|
|||
# fall back to using direnv's builtin nix support
|
||||
use nix
|
||||
fi
|
||||
|
||||
VIRTUAL_ENV="$PWD/venv"
|
||||
if [ ! -e venv ]
|
||||
then
|
||||
python -m venv --system-site-packages --without-pip "${VIRTUAL_ENV}"
|
||||
fi
|
||||
export VIRTUAL_ENV
|
||||
PATH_add "$VIRTUAL_ENV/bin"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue