--- /dev/null
+from Tools.Directories import *
+
+class About:
+ def __init__(self):
+ pass
+
+ def getVersionString(self):
+ file = open(resolveFilename(SCOPE_SYSETC, 'image-version'), 'r')
+ lines = file.readlines()
+ for x in lines:
+ splitted = x.split('=')
+ if splitted[0] == "version":
+ return "2.0-" + str(splitted[1])
+ file.close()
+ return "2.0b"
+
+about = About()
\ No newline at end of file
AVSwitch.py Network.py RFmod.py DiskInfo.py NimManager.py Lcd.py \
EpgList.py ScrollLabel.py Timezones.py Language.py HelpMenuList.py \
BlinkingPixmap.py Pixmap.py ConditionalWidget.py Slider.py LanguageList.py \
- PluginList.py PluginComponent.py RecordingConfig.py
+ PluginList.py PluginComponent.py RecordingConfig.py About.py
from Components.Harddisk import Harddisk
from Components.NimManager import nimmanager
from Components.MenuList import MenuList
+from Components.About import about
class About(Screen):
def __init__(self, session):
Screen.__init__(self, session)
- self["text"] = Label("Enigma v2.0b")
+ self["text"] = Label("Enigma v" + about.getVersionString())
self["tuner"] = Label(_("Detected NIMs:"))