Browse code

Use 'which pip' rather than /usr/bin/pip

Bug 1095472: Bugfix to use 'which pip' rather than assume pip always lives in /usr/bin

Change-Id: I0cc8a5e35306372653c3c27da9504c64e39d56dd

Nikhil Manchanda authored on 2013/01/04 10:49:58
Showing 1 changed files
... ...
@@ -1146,9 +1146,9 @@ function get_rootwrap_location() {
1146 1146
 # get_pip_command
1147 1147
 function get_pip_command() {
1148 1148
     if is_fedora; then
1149
-        echo "/usr/bin/pip-python"
1149
+        which pip-python
1150 1150
     else
1151
-        echo "/usr/bin/pip"
1151
+        which pip
1152 1152
     fi
1153 1153
 }
1154 1154