mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 18:13:04 +02:00
Detect old version of Vista (before SP2)
This commit is contained in:
parent
e49df95bac
commit
21f8414867
1 changed files with 5 additions and 1 deletions
|
|
@ -29,7 +29,11 @@
|
|||
isunix = isosx or islinux or ishaiku
|
||||
isportable = os.environ.get('CALIBRE_PORTABLE_BUILD', None) is not None
|
||||
ispy3 = sys.version_info.major > 2
|
||||
isxp = iswindows and sys.getwindowsversion().major < 6
|
||||
isxp = isoldvista = False
|
||||
if iswindows:
|
||||
wver = sys.getwindowsversion()
|
||||
isxp = wver.major < 6
|
||||
isoldvista = wver.build < 6002
|
||||
is64bit = sys.maxsize > (1 << 32)
|
||||
isworker = 'CALIBRE_WORKER' in os.environ or 'CALIBRE_SIMPLE_WORKER' in os.environ
|
||||
if isworker:
|
||||
|
|
|
|||
Loading…
Reference in a new issue