Mercurial > dotfiles
changeset 136:9b48ec89ffdf
common_env: use new insert_element_into_var to handle PYTHONPATH more safely
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Tue, 18 Aug 2009 13:44:26 -0500 |
parents | de6d0a9a7e3f |
children | 637797c692d5 |
files | .shell.d/50.common_env.sh |
diffstat | 1 files changed, 2 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/.shell.d/50.common_env.sh +++ b/.shell.d/50.common_env.sh @@ -16,12 +16,8 @@ unset MANPATH # smart man(1)s autodetect # Python stuff export PYTHONSTARTUP="$HOME/.python/startup.py" -MYPYTHONPATH="$HOME/unixSoft/lib/python:/opt/hg/lib/python" -if [[ "$PYTHONPATH" == "" ]] ; then - export PYTHONPATH="$MYPYTHONPATH" -else - export PYTHONPATH="$PYTHONPATH:$MYPYTHONPATH" -fi +insert_element_into_var "$HOME/unixSoft/lib/python" PYTHONPATH +insert_element_into_var /opt/hg/lib/python PYTHONPATH insert_path_element /opt/hg/bin