rwx/sh/python.sh
Marc Beninca e511ffa7f7
Some checks failed
/ job (push) Failing after 3s
python/venv
2025-02-07 21:39:13 +01:00

14 lines
368 B
Bash

# ╭────────╮
# │ python │
# ╰────────╯
# ╭────────┬──────╮
# │ python │ venv │
# ╰────────┴──────╯
rwx_python_venv() {
local path="${1}"
[ -d "${path}" ] || return 1
export VIRTUAL_ENV="${path}" && \
export PATH="${VIRTUAL_ENV}/bin:${PATH}"
}