From 36846c88ea50a2cd5e231c61b3646d0da7fa4639 Mon Sep 17 00:00:00 2001 From: Sebastian Wiesner Date: Fri, 13 Apr 2012 15:32:31 +0200 Subject: [PATCH] Simplified virtualenvwrapper test --- modules/python/init.zsh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/python/init.zsh b/modules/python/init.zsh index c0579be8..fc3da6f9 100644 --- a/modules/python/init.zsh +++ b/modules/python/init.zsh @@ -21,8 +21,6 @@ else fi # source virtualenvwrapper if available -if [[ -n "$WORKON_HOME" ]]; then - if (( $+commands[virtualenvwrapper.sh] )); then - source virtualenvwrapper.sh - fi +if [[ -n "$WORKON_HOME" ]] && (( $+commands[virtualenvwrapper.sh] )); then + source virtualenvwrapper.sh fi