--- 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")