how to find the OS name..??

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Sat Apr 21 07:36:51 EDT 2007


En Sat, 21 Apr 2007 08:13:10 -0300, pradeep nair <deepns7 at gmail.com>  
escribió:

> How do i determine the type of OS i'm working on using python??(i.e
> whether CentOS,Fedora,SLES,.......along with the version)

os.uname()
If you need more detailed information try the platform module

-- 
Gabriel Genellina




More information about the Python-list mailing list