An uname - like call?

Andrew Csillag andrew at starmedia.net
Wed May 19 13:00:16 EDT 1999


Szilveszter Juhos wrote:
> 
> 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.
> 
> Szilva
> http://elvira.dur.ac.uk/~ndgy/
combination of sys.copyright (the second line), sys.platform (the linux2
part) and sys.version (the 1.5.1 (#1, Jan 20 1999, 20:01:05)  [GCC
egcs-2.91.60 19981201] part)

-- 
Drew Csillag               Python and Linux Weenie    
Senior Engineer            "Walking on water and developing software (on
time)
StarMedia Network           from a specification is
easy...                   
(212)-548-9693              If both are frozen"




More information about the Python-list mailing list