1 from Tools.Directories import resolveFilename, SCOPE_SYSETC
2 from enigma import getEnigmaVersionString
8 def getVersionString(self):
9 return self.getImageVersionString()
11 def getImageVersionString(self):
13 file = open(resolveFilename(SCOPE_SYSETC, 'image-version'), 'r')
14 lines = file.readlines()
16 splitted = x.split('=')
17 if splitted[0] == "version":
19 #0120 2005 11 29 01 16
20 #0123 4567 89 01 23 45
26 return '-'.join(["dev", year, month, day])
33 def getEnigmaVersionString(self):
34 return getEnigmaVersionString()