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
This commit is contained in:
Nikhil Manchanda
2013-01-03 17:49:58 -08:00
parent 3a30b06daf
commit 35138ed673

View File

@@ -1146,9 +1146,9 @@ function get_rootwrap_location() {
# get_pip_command
function get_pip_command() {
if is_fedora; then
echo "/usr/bin/pip-python"
which pip-python
else
echo "/usr/bin/pip"
which pip
fi
}