- Notifications
You must be signed in to change notification settings - Fork1
Definitive Windows version checker for Python
License
NotificationsYou must be signed in to change notification settings
RealGreenDragon/winvers
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Definitive Windows version checker for Python
- A list of Windows versions constants (comparable between them)
- A function to get the Windows OS version running on the machine
- Python 2.7.x
- Python 3.x and newer
NO_WINWIN_10_19H2WIN_10_19H1WIN_10_1809WIN_10_1803WIN_10_1709WIN_10_1703WIN_10_1607WIN_10_1511WIN_10_1507WIN_10WIN_8_1WIN_8WIN_7_SP1WIN_7WIN_VISTA_SP1WIN_VISTAWIN_XP_X64_SP2WIN_XP_X64_SP1WIN_XP_X64WIN_XP_SP3WIN_XP_SP2WIN_XP_SP1WIN_XPWIN_2000WIN_SERVER_2016_1709WIN_SERVER_2016_1607WIN_SERVER_2016WIN_SERVER_2012_R2WIN_SERVER_2012WIN_SERVER_2008_R2WIN_SERVER_2008WIN_SERVER_2003_SP2WIN_SERVER_2003_SP1WIN_SERVER_2003
import winversif winvers.get_version() >= winvers.WIN_VISTA: print('Your OS is newer than Windows XP')if winvers.get_version() >= winvers.WIN_10: print('Your OS is Windows 10')
- https://docs.python.org/2/library/sys.html#sys.getwindowsversion
- https://docs.python.org/3/library/sys.html#sys.getwindowsversion
- https://en.wikipedia.org/wiki/Windows\_10\_version\_history
- https://en.wikipedia.org/wiki/Windows\_Server\_2016#Version\_history
- https://msdn.microsoft.com/en-us/library/windows/desktop/ms724832(v=vs.85).aspx
About
Definitive Windows version checker for Python
Topics
Resources
License
Stars
Watchers
Forks
Packages0
No packages published