Detect more types of BSD

This commit is contained in:
Kovid Goyal 2020-12-31 10:26:15 +05:30
parent c486fbb7c3
commit 1f7499e841
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -48,6 +48,10 @@ version = tuple(
_plat = sys.platform.lower()
is_macos = 'darwin' in _plat
is_openbsd = 'openbsd' in _plat
is_freebsd = 'freebsd' in _plat
is_netbsd = 'netbsd' in _plat
is_dragonflybsd = 'dragonfly' in _plat
is_bsd = is_freebsd or is_netbsd or is_dragonflybsd or is_openbsd
is_arm = platform.processor() == 'arm'
Env = glfw.Env
env = Env()