set missing defaults.. (ugly bug)
[enigma2.git] / lib / python / Components / About.py
1 from Tools.Directories import *
2
3 class About:
4         def __init__(self):
5                 pass
6         
7         def getVersionString(self):
8                 file = open(resolveFilename(SCOPE_SYSETC, 'image-version'), 'r')
9                 lines = file.readlines()
10                 for x in lines:
11                         splitted = x.split('=')
12                         if splitted[0] == "version":
13                                 return "2.0-" + str(splitted[1])
14                 file.close()
15                 return "2.0b"
16         
17 about = About()