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