Move PYTHONPATH creation to env.* files
This commit is contained in:
parent
b661804452
commit
9bd3f7bc50
2 changed files with 8 additions and 8 deletions
8
zshenv
8
zshenv
|
@ -23,14 +23,6 @@ export PATH \
|
|||
|
||||
[ $SYS = 'linux' ] && export MAIL="/var/mail/$USER"
|
||||
|
||||
local py27local=$HOME/.local/lib/python2.7/site-packages
|
||||
if [[ ! -z $PYTHONPATH ]]; then
|
||||
[ -d $py27local ] && PYTHONPATH=$py27local:$PYTHONPATH
|
||||
else
|
||||
PYTHONPATH=$py27local
|
||||
fi
|
||||
export PYTHONPATH
|
||||
|
||||
# System specific environment settings
|
||||
[ -e $HOME/.zshenv.$SYS ] && source $HOME/.zshenv.$SYS
|
||||
# Local environment settings
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue