mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 15:08:01 +00:00
Support $PYTHONUSERBASE per PEP 370
Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
This commit is contained in:
parent
ff0dfa424d
commit
bf9dbfd5b9
@ -16,9 +16,12 @@ elif (( $+commands[pyenv] )); then
|
|||||||
eval "$(pyenv init -)"
|
eval "$(pyenv init -)"
|
||||||
|
|
||||||
# Prepend PEP 370 per user site packages directory, which defaults to
|
# Prepend PEP 370 per user site packages directory, which defaults to
|
||||||
# ~/Library/Python on Mac OS X and ~/.local elsewhere, to PATH.
|
# ~/Library/Python on Mac OS X and ~/.local elsewhere, to PATH. The
|
||||||
|
# path can be overridden using PYTHONUSERBASE.
|
||||||
else
|
else
|
||||||
if [[ "$OSTYPE" == darwin* ]]; then
|
if [[ -n "$PYTHONUSERBASE" ]]; then
|
||||||
|
path=($PYTHONUSERBASE/bin $path)
|
||||||
|
elif [[ "$OSTYPE" == darwin* ]]; then
|
||||||
path=($HOME/Library/Python/*/bin(N) $path)
|
path=($HOME/Library/Python/*/bin(N) $path)
|
||||||
else
|
else
|
||||||
# This is subject to change.
|
# This is subject to change.
|
||||||
|
Loading…
Reference in New Issue
Block a user