Re: getting linux distro used...

2009-04-30 Thread JanC
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:

Re: getting linux distro used...

2009-04-27 Thread Lawrence D'Oliveiro
In message , Sebastian Wiesner wrote: > > >> . > > At least the Gentoo-Test is not very reliable. It's a wiki. You know what to do. -- http://mail.python.org/mailman/listinfo/python-list

Re: getting linux distro used...

2009-04-27 Thread Marcin Stępnicki
Dnia Sun, 26 Apr 2009 22:35:29 -0700, deostroll napisał(a): > 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...? Perhaps reading /etc/issue is sufficient? However, I know that for example Slackware puts its ve

Re: getting linux distro used...

2009-04-27 Thread Sebastian Wiesner
> In message a88b-2ded6f8af...@y33g2000prg.googlegroups.com>, 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...? > > Mostly the differences will not be important. But if you want to know, I > h

Re: getting linux distro used...

2009-04-27 Thread r-w
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 -- http://mail.python.org/mailman/listinfo/python-list

Re: getting linux distro used...

2009-04-27 Thread Lawrence D'Oliveiro
In message , 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...? Mostly the differences will not be important. But if you want to know, I have been compiling a list of tests here

Re: getting linux distro used...

2009-04-27 Thread James Matthews
You can always pipe the information for the command line. On Mon, Apr 27, 2009 at 8:59 AM, David Lyon wrote: > > perphaps platform.uname()? > > On Sun, 26 Apr 2009 22:35:29 -0700 (PDT), deostroll > wrote: > > Hi, > > > > I just found that you could use platform.system() to get the > > underlying

Re: getting linux distro used...

2009-04-26 Thread David Lyon
perphaps platform.uname()? On Sun, 26 Apr 2009 22:35:29 -0700 (PDT), 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 > -- > http://mail.python.org/mailman/listinfo/python

Re: getting linux distro used...

2009-04-26 Thread Benjamin Kaplan
On Mon, Apr 27, 2009 at 1:35 AM, 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 > -- > http://mail.python.org/mailman/listinfo/python-list > platform.linux_distribution()

getting linux distro used...

2009-04-26 Thread deostroll
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 -- http://mail.python.org/mailman/listinfo/python-list