getting linux distro used...

r-w r-w at inet.net.au
Mon Apr 27 04:09:15 EDT 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.

Ross



More information about the Python-list mailing list