Utilities/__init__.py

changeset 882
34b86be88bf0
parent 832
eb5ff61f927b
child 915
c1e052773c08
child 1107
cad60e83a962
--- a/Utilities/__init__.py	Sat Feb 05 19:55:33 2011 +0100
+++ b/Utilities/__init__.py	Sun Feb 06 15:41:44 2011 +0100
@@ -43,7 +43,8 @@
     qVersion, PYQT_VERSION_STR, QCoreApplication, QCryptographicHash
 from PyQt4.Qsci import QSCINTILLA_VERSION_STR, QsciScintilla
 
-from Globals import isWindowsPlatform   # import this method into the Utilities namespace
+from Globals import isWindowsPlatform, isLinuxPlatform, isMacPlatform  # __IGNORE_WARNING__
+# import these methods into the Utilities namespace
 
 from E5Gui.E5Application import e5App
 
@@ -1355,7 +1356,7 @@
     @return string with plugins version infos (string)
     """
     infoStr = ""
-    if sys.platform.startswith("linux"):
+    if isLinuxPlatform():
         releaseList = glob.glob("/etc/*-release")
         if releaseList:
             infoStr = "Distribution Info:{0}".format(linesep)

eric ide

mercurial