borgbackup/src/borg/platformflags.py
Thomas Waldmann f088682bc9
ignore testsuite test for slow msgpack on cygwin
we don't want to have a failing test just because a
not compiled msgpack was used to run the tests.
2022-11-22 18:16:12 +01:00

14 lines
359 B
Python

"""
Flags for Platform-specific APIs.
Use these Flags instead of sys.platform.startswith('<OS>') or try/except.
"""
import sys
is_win32 = sys.platform.startswith("win32")
is_cygwin = sys.platform.startswith("cygwin")
is_linux = sys.platform.startswith("linux")
is_freebsd = sys.platform.startswith("freebsd")
is_darwin = sys.platform.startswith("darwin")