83
81
# misleading: Python 2.5.4 shows uname()[2] as Vista on Windows 7
84
82
__os = platform.uname()[3][0:3] # 5.1 = Windows XP, 6.0 = Vista, 6.1 = 7
85
83
elif sys.platform.startswith('linux'):
87
85
# example: ('fedora', '11', 'Leonidas')
88
86
# example: ('', '', '') for Arch Linux