deostroll wrote:

> 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...?

Major modern distros support 'lsb_release', I suppose:

$ lsb_release -i -r -c -d
Distributor ID: Ubuntu
Description:    Ubuntu 9.04
Release:        9.04
Codename:       jaunty


If that doesn't work; try '/etc/issue'.


-- 
JanC
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to