Set PYTHONPATH to include .local path

This commit is contained in:
Eryn Wells 2011-12-16 16:14:35 -08:00
parent e24a8eb3d4
commit 55d6796e7a

8
zshenv
View file

@ -23,3 +23,11 @@ export PATH \
GREP_OPTIONS GREP_COLOR GREP_OPTIONS GREP_COLOR
[ `uname -s` = "Linux" ] && export MAIL="/var/mail/$USER" [ `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