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