Commits

Doug Hellmann committed 9be7279

address issue #46 by escaping the calls to which

  • Participants
  • Parent commits ffeb19b

Comments (0)

Files changed (2)

+2010-06-03  Doug Hellmann  <dhellmann@racemi.com>
+
+	* virtualenvwrapper.sh: Escape the call to "which" so we don't use
+	an alias by accident.
+
 2010-05-22  Doug Hellmann  <dhellmann@racemi.com>
 
 	* tests/test_cp.sh: Clarify some of the tests by breaking up,

File virtualenvwrapper.sh

 # Locate the global Python where virtualenvwrapper is installed.
 if [ "$VIRTUALENVWRAPPER_PYTHON" = "" ]
 then
-    VIRTUALENVWRAPPER_PYTHON="$(which python)"
+    VIRTUALENVWRAPPER_PYTHON="$(\which python)"
 fi
 
 # If the path is relative, prefix it with $HOME
 
 # Verify that virtualenv is installed and visible
 virtualenvwrapper_verify_virtualenv () {
-    typeset venv=$(which virtualenv | grep -v "not found")
+    typeset venv=$(\which virtualenv | grep -v "not found")
     if [ "$venv" = "" ]
     then
         echo "ERROR: virtualenvwrapper could not find virtualenv in your path" >&2