Set PYTHONPATH to include .local path
This commit is contained in:
parent
e24a8eb3d4
commit
55d6796e7a
1 changed files with 8 additions and 0 deletions
8
zshenv
8
zshenv
|
@ -23,3 +23,11 @@ export PATH \
|
|||
GREP_OPTIONS GREP_COLOR
|
||||
|
||||
[ `uname -s` = "Linux" ] && export MAIL="/var/mail/$USER"
|
||||
|
||||
local py27local=$HOME/.local/lib/python2.7/site-packages
|
||||
if [[ ! -z $PYTHONPATH ]]; then
|
||||
[ -d $py27local ] && PYTHONPATH=$PYTHONPATH:$py27local
|
||||
else
|
||||
PYTHONPATH=$py27local
|
||||
fi
|
||||
export PYTHONPATH
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue