what is the best way to determine system OS?
Philippe C. Martin
philippe at philippecmartin.com
Mon Apr 25 15:43:07 EDT 2005
Well,
At least I discovered os.uname :-)
Thanks,
Philippe
Sion Arrowsmith wrote:
> Philippe C. Martin <philippe at philippecmartin.com> wrote:
>>How about popen of 'uname -r' ?
>
> os.uname()[2] is probably a better way (ie it doesn't spawning
> another process) of getting this information. I don't think it
> will help the original poster though (depending on *what* it is
> about FC3 which is breaking things) since it only provides the
> kernel version.
>
More information about the Python-list
mailing list