An uname - like call?

Jeff Blaine jblaine at shell2.shore.net
Wed May 19 12:36:15 EDT 1999


>elvira:~(ndgy)python
>Python 1.5.1 (#1, Jan 20 1999, 20:01:05)  [GCC egcs-2.91.60 19981201 (e 
>on linux2
>Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>>>
>
>How can I get this string in a script? It should be annoying to fork a
>os.system("uname -a") since the OS ID is already in the interpreter
>somehow. 

import sys
print sys.version




More information about the Python-list mailing list