9 lines
174 B
Bash
9 lines
174 B
Bash
#!/usr/bin/env bash
|
|
|
|
[ "$VIRTUAL_ENV" ] && deactivate && return
|
|
|
|
if [ ! -d 'venv' ]; then
|
|
"${PY3:-python3}" -m virtualenv "$@" venv || return 1
|
|
fi
|
|
|
|
. ./venv/bin/activate
|