[issue3937] platform.dist(): detect Linux distribution version in a robust, standard way

Zooko O'Whielacronx report at bugs.python.org
Tue Sep 23 19:16:00 CEST 2008


Zooko O'Whielacronx <zooko at zooko.com> added the comment:

Here is an updated version of my patch which tries parsing
/etc/lsb-release first and only if that fails tries executing
lsb_release.  The reason is that executing lsb_release in a subprocess
takes half-a-second on my high-performance Athlon64 Ubuntu workstation,
and also that some installations have /etc/lsb-release but not
lsb_release.  See the docstring for more details about why to do it this
way and exactly what it does.

Added file: http://bugs.python.org/file11573/dist.patch.txt

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


More information about the Python-bugs-list mailing list