diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-01-01 20:37:05 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2006-01-01 20:37:05 +0000 |
| commit | 1bd4065bcdb4c438f986e8ec0e19dfef9550d402 (patch) | |
| tree | ceee8d533de53aa5702fec8ed1f9576d00582dc4 /lib/python/Components/About.py | |
| parent | 48dce974f57f2a7f875787c2bbcb594531dce1c0 (diff) | |
| download | enigma2-1bd4065bcdb4c438f986e8ec0e19dfef9550d402.tar.gz enigma2-1bd4065bcdb4c438f986e8ec0e19dfef9550d402.zip | |
use image-version from /etc/image-version as version in e2 about box
Diffstat (limited to 'lib/python/Components/About.py')
| -rw-r--r-- | lib/python/Components/About.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/python/Components/About.py b/lib/python/Components/About.py new file mode 100644 index 00000000..24bfb2b0 --- /dev/null +++ b/lib/python/Components/About.py @@ -0,0 +1,17 @@ +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 |
