Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

I tested that the "-b" option is supported on Linux, *BSD and OpenIndiana. But 
it is not a part of POSIX. So perhaps we should fall back to "file" without 
"-b" if "file -b" failed.

We can also check that the output starts with executable+': ' and strip this 
prefix.

----------

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

Reply via email to