Re: [python-win32] detecting windows type

2005-09-08 Thread John Machin
Roel Schroeven wrote: >le dahut wrote: > > >>Hello, >> >>How is it possible to detect which kind of windows a python script is >>running on ? (9x, Me, 2k, XP, 2k3) >> >> > >You can use sys.getwindowsversion() for that. Check MSDN documentation >for the precise meaning of the result. > > >

[python-win32] detecting windows type

2005-09-08 Thread Peter Jessop
On 9/8/05, le dahut <[EMAIL PROTECTED]> wrote:     Hello,     How is it possible to detect which kind of windows a python script is     running on ? (9x, Me, 2k, XP, 2k3)  >>> from win32api import * >>> GetVersionEx()     An other question:     I've a script using     win32com.client.Dispa

Re: [python-win32] detecting windows type

2005-09-08 Thread Roel Schroeven
le dahut wrote: > Hello, > > How is it possible to detect which kind of windows a python script is > running on ? (9x, Me, 2k, XP, 2k3) You can use sys.getwindowsversion() for that. Check MSDN documentation for the precise meaning of the result. > An other question: > I've a script using > win3

[python-win32] detecting windows type

2005-09-08 Thread le dahut
Hello, How is it possible to detect which kind of windows a python script is running on ? (9x, Me, 2k, XP, 2k3) An other question: I've a script using win32com.client.Dispatch("WbemScripting.SWbemLocator") but it doesn't seem to function on win 9x. This script is intended to detect the computer's