How to detect my OS info?

Klaus Alexander Seistrup spam at magnetic-ink.dk
Wed Feb 26 01:19:11 EST 2003


Peter Wu wrote:

> Under FreeBSD, I can fire 'uname -rs' to get the information I
> need and under Windows, I may need to leverage 'ver' to get the
> info.

>>> import os
>>> print os.uname()[0]
Linux
>>> 


  // Klaus

-- 
 ><> 	vandag, môre, altyd saam




More information about the Python-list mailing list