From 36c03fbebc23e789ff14b14a40d11e1d1921654a Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Thu, 4 Aug 2016 15:21:50 -0700 Subject: [PATCH] Add pyenv-virtualenv to shellenv.sh --- dotfiles/lib/shellenv.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/dotfiles/lib/shellenv.sh b/dotfiles/lib/shellenv.sh index f3b1d071..e99dd92f 100644 --- a/dotfiles/lib/shellenv.sh +++ b/dotfiles/lib/shellenv.sh @@ -63,15 +63,9 @@ function _python_setup { echo "WARNING: pyenv is not installed on this machine and python will likely not function correctly" fi - # The following line is no longer necessary since the pyenv shim - # should handle directing to the appropriate install. - - # add_to_path "$(get_python_scripts_path)" --before + if which pyenv-virtualenv-init > /dev/null; then eval "$(pyenv virtualenv-init -)"; fi add_to_path "$HOME/.lib/python" --path-var 'PYTHONPATH' - - # This should no longer be needed now that pyenv is used - # add_to_path /usr/local/lib/python2.7/site-packages --after } function _node_setup {