mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Haiku OS detection support
This commit is contained in:
parent
11e2e05c06
commit
6979f7d0e9
@ -22,9 +22,10 @@ isfreebsd = 'freebsd' in _plat
|
|||||||
isnetbsd = 'netbsd' in _plat
|
isnetbsd = 'netbsd' in _plat
|
||||||
isdragonflybsd = 'dragonfly' in _plat
|
isdragonflybsd = 'dragonfly' in _plat
|
||||||
isbsd = isfreebsd or isnetbsd or isdragonflybsd
|
isbsd = isfreebsd or isnetbsd or isdragonflybsd
|
||||||
islinux = not(iswindows or isosx or isbsd)
|
ishaiku = 'haiku1' in _plat
|
||||||
|
islinux = not(iswindows or isosx or isbsd or ishaiku)
|
||||||
isfrozen = hasattr(sys, 'frozen')
|
isfrozen = hasattr(sys, 'frozen')
|
||||||
isunix = isosx or islinux
|
isunix = isosx or islinux or ishaiku
|
||||||
isportable = os.environ.get('CALIBRE_PORTABLE_BUILD', None) is not None
|
isportable = os.environ.get('CALIBRE_PORTABLE_BUILD', None) is not None
|
||||||
ispy3 = sys.version_info.major > 2
|
ispy3 = sys.version_info.major > 2
|
||||||
isxp = iswindows and sys.getwindowsversion().major < 6
|
isxp = iswindows and sys.getwindowsversion().major < 6
|
||||||
|
Loading…
x
Reference in New Issue
Block a user