From 52480893212bc534a428f95284aa9a4b83dd2b95 Mon Sep 17 00:00:00 2001 From: Sebastian Wiesner Date: Fri, 13 Apr 2012 15:16:01 +0200 Subject: [PATCH] Fixed test for WORKON_HOME --- modules/python/init.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/python/init.zsh b/modules/python/init.zsh index 64fde25c..c0579be8 100644 --- a/modules/python/init.zsh +++ b/modules/python/init.zsh @@ -21,7 +21,7 @@ else fi # source virtualenvwrapper if available -if (( $+WORKON_HOME )); then +if [[ -n "$WORKON_HOME" ]]; then if (( $+commands[virtualenvwrapper.sh] )); then source virtualenvwrapper.sh fi