How to get version of Windows?
Gerhard Häring
gerhard.haering at opus-gmbh.net
Thu Dec 12 04:32:28 EST 2002
More information about the Python-list mailing list
Thu Dec 12 04:32:28 EST 2002
- Previous message (by thread): Object Craft Python modules announcement
- Next message (by thread): How to get version of Windows?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Eric Brunel <eric.brunel at pragmadev.com> wrote: > Hi all, > > Maybe I'm missing something obvious here, but I searched a lot around and > couldn't find anything. I'd like to know the version of Windows I'm running > on from a Python program. How can I do that? AFAIK, sys.platform, os.name > and related stuff always return the same thing on any Windows flavor. > > To be more precise, what I need to know is the Windows "lineage": > Win95/98/Me or WinNT/2k/XP. Any clue on a secure way to do that? With http://www.lemburg.com/files/python/platform.py Check out platform.win32_ver() there. -- Gerhard Häring OPUS GmbH München Tel.: +49 89 - 889 49 7 - 32 http://www.opus-gmbh.net/
- Previous message (by thread): Object Craft Python modules announcement
- Next message (by thread): How to get version of Windows?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list