1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-22 18:38:00 +00:00

[python] Ensure availability of virtualenvwrapper file before sourcing it

This commit is contained in:
Indrajit Raychaudhuri 2017-08-18 07:55:34 -05:00
parent cab4ac54ec
commit 5ffc8a07f1

View File

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