How to detect my OS info?

Peter Wu peterwu at hotmail.com
Thu Feb 27 08:33:22 CET 2003


>>>>> "Klaus" == Klaus Alexander Seistrup <spam at magnetic-ink.dk> writes:

    Klaus> Peter Wu wrote:
    >> How can I have more detailed information, such as version?

    Klaus> #v+

    >>>> import os os.uname()
    Klaus> ('Linux', 'brainsplit', '2.4.18', '#6 Sun Oct 27 11:09:10 CET
    Klaus> 2002', 'i686')
    >>>>

    Klaus> #v-

Python 2.2.2 (#37, Oct 14 2002, 17:02:34) [MSC 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.uname()
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
AttributeError: 'module' object has no attribute 'uname'
>>> 

-- 
Peter Wu
Powered by Microsoft Windows XP [Version 5.1.2600]

This posting is provided "AS IS" with no warranties, and confers no rights.





More information about the Python-list mailing list