Re: OS env for Windows

2005-02-13 Thread python newbie
Cool thanks a lot. Always wanted to use win32api module too. "Tony Meyer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> Is there any other way >> of distinguishing between XP and 2000 I wonder? > > WinXP SP2: > import win32api major, minor, spack, platform, ver_str = win

Re: OS env for Windows

2005-02-13 Thread StvB
If Cary Grant's ghost was into Python and saw this good info, he'd say: "That's just ducky." But he's probably not. Ok Thanks Tony - I've always wanted to try out win32api module. Just what I need. "Tony Meyer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> Is there any other w

RE: OS env for Windows

2005-02-13 Thread Tony Meyer
> Is there any other way > of distinguishing between XP and 2000 I wonder? WinXP SP2: >>> import win32api >>> major, minor, spack, platform, ver_str = win32api.GetVersionEx() >>> print major, minor, spack, platform, ver_str 5 1 2600 2 Service Pack 2 WinNT SP4: >>> import win32api >>> major, min