From 7d68d3ff52b9468f6c0551fa81022d5c300fa1ba Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Tue, 25 Sep 2012 12:57:57 -0400 Subject: [PATCH] [Fix #297] Check for pythonz before returning --- modules/python/init.zsh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/python/init.zsh b/modules/python/init.zsh index 927dc9d..1187561 100644 --- a/modules/python/init.zsh +++ b/modules/python/init.zsh @@ -6,8 +6,13 @@ # Sebastian Wiesner # +# Load pythonz into the shell session. +if [[ -s $HOME/.pythonz/bin/pythonz ]]; then + path=($HOME/.pythonz/bin $path) +fi + # Return if requirements are not found. -if (( ! $+commands[python] )); then +if (( ! $+commands[python] && ! $+commands[pythonz] )); then return 1 fi @@ -33,11 +38,6 @@ if (( $+commands[virtualenvwrapper_lazy.sh] )); then source "$commands[virtualenvwrapper_lazy.sh]" fi -# Load pythonz into the shell session. -if [[ -s $HOME/.pythonz/bin/pythonz ]]; then - path=($HOME/.pythonz/bin $path) -fi - # # Aliases #