aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2005-11-30 00:50:38 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2005-11-30 00:50:38 +0000
commit0cd4b8be7607608d8b33bf1a5c25dda8815463d3 (patch)
tree819b6be08332fcdfbb83db47d34db9cd836b2ed9 /lib/python/Components
parente2911fbe70250ededadb22fbcf369b21fdd63ee4 (diff)
downloadenigma2-0cd4b8be7607608d8b33bf1a5c25dda8815463d3.tar.gz
enigma2-0cd4b8be7607608d8b33bf1a5c25dda8815463d3.zip
store config in /etc/enigma2 and create the path if needed
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/config.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py
index 037b66b1..4d5af5cc 100644
--- a/lib/python/Components/config.py
+++ b/lib/python/Components/config.py
@@ -1,12 +1,13 @@
from time import *
from Tools.NumericalTextInput import *
+from Tools.Directories import *
class configFile:
def __init__(self):
self.changed = 0
self.configElements = { }
try:
- self.file = open("config")
+ self.file = open(resolveFilename(SCOPE_CONFIG, "config"))
except IOError:
print "cannot open config file"
return
@@ -38,7 +39,7 @@ class configFile:
if self.changed == 0: #no changes, so no write to disk needed
return
- fileHandle = open("config", "w")
+ fileHandle = open(resolveFilename(SCOPE_CONFIG, "config"), "w")
keys = self.configElements.keys()
keys.sort()