getting linux distro used...

r-w r-w at
Mon Apr 27 10:09:15 CEST 2009

deostroll wrote:
> Hi,
> I just found that you could use platform.system() to get the
> underlying os used. But is there a way to get the distro used...?
> --deostroll

platform.dist() returns
('debian', 'lenny/sid', '')
on my Ubuntu box.


More information about the Python-list mailing list