Martin Panter added the comment:

I presume the problem is that Free BSD’s “type” command outputs the error to 
the shell’s original stderr, rather than the one given on the “type” command 
line. If so, the Python 3 patches for Issue 22636 should avoid it by using 
shutil.which() instead.

However that function does not exist in Python 2, so a different solution needs 
to be found. Probably an improved version of Eric’s patch would be good.

----------
dependencies: +avoid using a shell in ctypes.util: replace os.popen with 
subprocess
stage: patch review -> needs patch
versions: +Python 2.7 -Python 2.6

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue6338>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to