Skip to content

Commit

Permalink
[python] Ensure availability of virtualenvwrapper file before sourcin…
Browse files Browse the repository at this point in the history
…g it
  • Loading branch information
indrajitr committed Aug 18, 2017
1 parent cab4ac5 commit 5ffc8a0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/python/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5ffc8a0

Please sign in to comment.