aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authorRonny Strutz <ronny.strutz@multimedia-labs.de>2005-09-01 23:16:37 +0000
committerRonny Strutz <ronny.strutz@multimedia-labs.de>2005-09-01 23:16:37 +0000
commit9adbc6720dfe4385bcd2c9d364874c1e7f7cf9ac (patch)
tree826ad13d44ff83b48e2cddbc17d5355533d567b3 /lib/python/Components
parent45ff4a40741c0562b9feccec57b6e062f063ab76 (diff)
downloadenigma2-9adbc6720dfe4385bcd2c9d364874c1e7f7cf9ac.tar.gz
enigma2-9adbc6720dfe4385bcd2c9d364874c1e7f7cf9ac.zip
added skip comment
removed some old stuff
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/config.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py
index 7419eff5..ed85ed22 100644
--- a/lib/python/Components/config.py
+++ b/lib/python/Components/config.py
@@ -12,6 +12,10 @@ class configFile:
line = self.file.readline()
if line == "":
break
+
+ if line.startswith("#"): #skip comments
+ continue
+
self.addElement(line)
self.file.close()
@@ -38,10 +42,6 @@ class configFile:
if wstr[len(wstr) - 1] != '\n':
wstr = wstr + "\n"
-
- # fileHandle.write(wstr)
- #else:
- # fileHandle.write(wstr + "\n")
fileHandle.write(wstr)
@@ -155,7 +155,6 @@ class configElement:
self.save() #add missing value to dict
else:
self.value = value
- print "value ok"
def __init__(self, configPath, control, defaultValue, vals):
self.configPath = configPath