[issue3719] platform.py: _syscmd_file() can't handle target path with space or special shell character

Marc-Andre Lemburg report at bugs.python.org
Tue Sep 2 13:06:21 CEST 2008


Marc-Andre Lemburg <mal at egenix.com> added the comment:

On 2008-09-02 12:55, Hirokazu Yamamoto wrote:
> Hirokazu Yamamoto <ocean-city at m2.ccsnet.ne.jp> added the comment:
> 
> Well, if python was installed into directory named
> "foo ELF boo", python will say wrong architecture.
> 
>>>> import platform
>>>> platform.architecture()
> ('32bit', 'ELF')
> 
> Is it not good to use "file -b" option?

Well, I'd say that install path is rather unlikely to occur in real
life ;-)

I'm not sure how wide-spread support for the -b option is, so we'd
have to check during the next release cycle.

----------
title: platform.py: _syscmd_file() can't handle target path with space or special shell character -> platform.py: _syscmd_file() can't handle target path with	space or special shell character

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3719>
_______________________________________


More information about the Python-bugs-list mailing list