python/venv
Some checks failed
/ job (push) Failing after 3s

This commit is contained in:
Marc Beninca 2025-02-07 21:39:13 +01:00
parent 7668ef8f47
commit e511ffa7f7
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

14
sh/python.sh Normal file
View file

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