From 360620535299a71a253312ab0ffeabe1ef13d239 2012-06-13 09:35:48 From: MinRK Date: 2012-06-13 09:35:48 Subject: [PATCH] swallow stderr of which in utils.process.find_cmd closes #1941 --- diff --git a/IPython/utils/_process_posix.py b/IPython/utils/_process_posix.py index 8d4e6f2..50f3026 100644 --- a/IPython/utils/_process_posix.py +++ b/IPython/utils/_process_posix.py @@ -36,7 +36,7 @@ def _find_cmd(cmd): """Find the full path to a command using which.""" path = sp.Popen(['/usr/bin/env', 'which', cmd], - stdout=sp.PIPE).communicate()[0] + stdout=sp.PIPE, stderr=sp.PIPE).communicate()[0] return py3compat.bytes_to_str(path)