From 084433428a7fcdfbd9c98326e0051dc55a573cbb Mon Sep 17 00:00:00 2001 From: Jacob Magnusson Date: Fri, 26 Jun 2015 15:19:21 +0200 Subject: [PATCH] Fix: Don't force ~/.virtualenvs as WORKON_HOME --- modules/python/init.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/python/init.zsh b/modules/python/init.zsh index da78ea79..5d1f230a 100644 --- a/modules/python/init.zsh +++ b/modules/python/init.zsh @@ -37,7 +37,9 @@ fi # Load virtualenvwrapper into the shell session. if (( $+commands[virtualenvwrapper.sh] )); then # Set the directory where virtual environments are stored. - export WORKON_HOME="$HOME/.virtualenvs" + if [[ -z $WORKON_HOME ]]; then + export WORKON_HOME="$HOME/.virtualenvs" + fi # Disable the virtualenv prompt. VIRTUAL_ENV_DISABLE_PROMPT=1