aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Components/config.py')
-rw-r--r--lib/python/Components/config.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py
index 7c7acc34..42172021 100644
--- a/lib/python/Components/config.py
+++ b/lib/python/Components/config.py
@@ -38,6 +38,18 @@ class configFile:
else:
self.configElements[key] = value
+ def getResolvedKey(self, key):
+ str = self.configElements[key]
+ if len(str):
+ pos = str.find('*')
+ if pos != -1:
+ str = str[pos+1:]
+ pos = str.find('*')
+ if pos != -1:
+ return str[:pos]
+ return str
+ return None
+
def save(self):
if self.changed == 0: #no changes, so no write to disk needed
return