How to detect my OS info?
Peter Wu
peterwu at hotmail.com
Tue Feb 25 22:36:17 EST 2003
Hello,
I use Windows and FreeBSD interchangeably. I want to write a .signature
script that can detect my OS respectively.
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.
Is there a one-stop solution from Python? I mean I just write one python
script and it can work both on Windows and FreeBSD? Thanks.
--
Peter Wu
More information about the Python-list
mailing list