load cutlist on initial create
[enigma2.git] / lib / python / Components / config.py
index 7c7acc345bfa1b3c44a8a0e665ac39cf83661fda..4217202102561c4f3cfceacfea816a9047420884 100644 (file)
@@ -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