use which -a on linux

Signed-off-by: Kenneth Reitz <me@kennethreitz.org>
This commit is contained in:
2017-09-18 14:05:06 -04:00
parent b037070b75
commit 4e2e6d3a26
+1 -1
View File
@@ -1172,7 +1172,7 @@ def which_pip(allow_global=False):
def system_which(command, mult=False):
"""Emulates the system's which. Returns None is not found."""
_which = 'which' if not os.name == 'nt' else 'where'
_which = 'which -a' if not os.name == 'nt' else 'where'
c = delegator.run('{0} {1}'.format(_which, command))
try: