Globals/__init__.py

changeset 882
34b86be88bf0
parent 791
9ec2ac20e54e
child 945
8cd4d08fa9f6
child 1510
e75ecf2bd9dd
--- a/Globals/__init__.py	Sat Feb 05 19:55:33 2011 +0100
+++ b/Globals/__init__.py	Sun Feb 06 15:41:44 2011 +0100
@@ -27,3 +27,19 @@
     @return flag indicating Windows platform (boolean)
     """
     return sys.platform.startswith("win")
+
+def isMacPlatform():
+    """
+    Function to check, if this is a Mac platform.
+    
+    @return flag indicating Mac platform (boolean)
+    """
+    return sys.platform == "darwin"
+
+def isLinuxPlatform():
+    """
+    Function to check, if this is a Linux platform.
+    
+    @return flag indicating Linux platform (boolean)
+    """
+    return sys.platform.startswith("linux")

eric ide

mercurial