[Tutor] how to determine windows version
Todong Ma
gbstack08 at gmail.com
Sun Jun 30 08:18:23 CEST 2013
You can use either sys.getwindowsversion() or platform.platform() function.
platform.platform() gives a more friendly string, e.g.
"Windows-7-6.1.7600", that means Windows 7 with major version 6, minor
version 1 and Build No. 7600. While sys.getwindowsversion() will return
a named tuple, like (major=6, minor=1, build=7600)
This blog post describes how to get windows version in detail:
http://redino.net/blog/2013/06/detect-windows-version-in-python/
More information about the Tutor
mailing list