parent
7668ef8f47
commit
e511ffa7f7
1 changed files with 14 additions and 0 deletions
14
sh/python.sh
Normal file
14
sh/python.sh
Normal 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}"
|
||||
}
|
Loading…
Reference in a new issue