Pull requests

#6 Merged
Repository
blueyed
Branch
master
Repository
dhellmann
Branch
master

Fix `which` with virtualenvwrapper_lazy.sh

Author
  1. Daniel Hahler
Reviewers
Description

Fix which with virtualenvwrapper_lazy.sh

command \which is used in virtualenvwrapper.sh, and it fixes an infinite loop, because VIRTUALENVWRAPPER_SCRIPT is not being setup correctly.

In my zsh setup:

% which virtualenvwrapper.sh
sh: suffix aliased to zsh-mime-handler
% command which virtualenvwrapper.sh
/usr/local/bin/virtualenvwrapper.sh

An alternative might be to use which -p, but that is probably zsh-only (not portable).

This also fixes the error message when the import in virtualenvwrapper_run_hook fails.

  • Learn about pull requests

Comments (0)