X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fpython%2FComponents%2Fconfig.py;h=4d5af5ccd9b2ba725f2d2a35cf589b26895b63d1;hb=60fb5b95387fb30902240b92deed145720fa867a;hp=037b66b13c8fa8b6a9e5cd8456c81e1ecd24fcfe;hpb=89a936e39a696d7d4928051b31871f483dd178d1;p=vuplus_dvbapp diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index 037b66b..4d5af5c 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()