Browse Source

[python] Ensure availability of virtualenvwrapper file before sourcing it

master
Indrajit Raychaudhuri 7 years ago
parent
commit
5ffc8a07f1
  1. 3
      modules/python/init.zsh

3
modules/python/init.zsh

@ -108,7 +108,10 @@ if (( $+VIRTUALENVWRAPPER_VIRTUALENV || $+commands[virtualenv] )) && \ @@ -108,7 +108,10 @@ if (( $+VIRTUALENVWRAPPER_VIRTUALENV || $+commands[virtualenv] )) && \
${(@Ov)commands[(I)virtualenvwrapper(_lazy|).sh]}
/usr/share/virtualenvwrapper/virtualenvwrapper(_lazy|).sh(OnN)
)
if (( $#virtenv_sources )); then
source "${virtenv_sources[1]}"
fi
unset virtenv_sources
fi
fi

Loading…
Cancel
Save