##// END OF EJS Templates
swallow stderr of which in utils.process.find_cmd...
MinRK -
Show More
@@ -36,7 +36,7 b' def _find_cmd(cmd):'
36 """Find the full path to a command using which."""
36 """Find the full path to a command using which."""
37
37
38 path = sp.Popen(['/usr/bin/env', 'which', cmd],
38 path = sp.Popen(['/usr/bin/env', 'which', cmd],
39 stdout=sp.PIPE).communicate()[0]
39 stdout=sp.PIPE, stderr=sp.PIPE).communicate()[0]
40 return py3compat.bytes_to_str(path)
40 return py3compat.bytes_to_str(path)
41
41
42
42
General Comments 0
You need to be logged in to leave comments. Login now