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
22 image_type = version[0] # 0 = release, 1 = experimental
29 date = '-'.join((year, month, day))
31 image_type = "Release"
32 version = '.'.join((major, minor, revision))
33 return ' '.join((image_type, version, date))
35 image_type = "Experimental"
36 return ' '.join((image_type, date))
43 def getEnigmaVersionString(self):
44 return getEnigmaVersionString()