YAMAMOTO Takashi <[email protected]> added the comment:

unfortunately it doesn't work on NetBSD because /bin/sh doesn't have -l option.
i can't think of a portable way to achieve the goal.
for BSD derivative systems whereis(1) is probably a right utility to use but
linux distributions seem to have something incompatible with the same name.
IMO, simply listing likely candidates (/usr/bin/python, /usr/local/bin/python,
/usr/pkg/bin/python, ...) is a reasonable compromise.

----------
status: resolved -> chatting

________________________________________
PyPy bug tracker <[email protected]>
<https://bugs.pypy.org/issue1412>
________________________________________
_______________________________________________
pypy-issue mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to