Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swallow stderr of which in utils.process.find_cmd #1942

Merged
merged 1 commit into from
Jun 13, 2012
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion IPython/utils/_process_posix.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down