aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/os.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--project/os.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/project/os.py b/project/os.py
index 2f5f088..53b64e1 100644
--- a/project/os.py
+++ b/project/os.py
@@ -36,6 +36,14 @@ def on_windows_like():
return os is OS.WINDOWS or os is OS.CYGWIN
+def on_linux():
+ return OS.current() is OS.LINUX
+
+
def on_linux_like():
os = OS.current()
return os is OS.LINUX or os is OS.CYGWIN
+
+
+def on_cygwin():
+ return OS.current() is OS.CYGWIN