add support for up to 128 LNBs
[enigma2.git] / lib / python / Components / About.py
index e5f9543edce4d8945ace967ef0ca5cc647531e64..ce1328cf279888332dd7cd3c1931b726c6df6586 100644 (file)
@@ -1,10 +1,14 @@
-from Tools.Directories import *
+from Tools.Directories import resolveFilename, SCOPE_SYSETC
+from enigma import getEnigmaVersionString
 
 class About:
        def __init__(self):
                pass
-       
+
        def getVersionString(self):
+               return self.getImageVersionString()
+
+       def getImageVersionString(self):
                try:
                        file = open(resolveFilename(SCOPE_SYSETC, 'image-version'), 'r')
                        lines = file.readlines()
@@ -18,12 +22,15 @@ class About:
                                        year = version[4:8]
                                        month = version[8:10]
                                        day = version[10:12]
-                                       
-                                       return '-'.join(["2.1", year, month, day])
+
+                                       return '-'.join(["dev", year, month, day])
                        file.close()
                except IOError:
                        pass
 
                return "unavailable"
-       
+
+       def getEnigmaVersionString(self):
+               return getEnigmaVersionString()
+
 about = About()