Add '__getattr__' to CoreConfig to access the dictionary directly
This commit is contained in:
parent
4878743d68
commit
6d33ff9902
|
@ -51,3 +51,7 @@ class CoreConfig(component.Component):
|
||||||
|
|
||||||
def on_configvaluechanged_event(self, key, value):
|
def on_configvaluechanged_event(self, key, value):
|
||||||
self.config[key] = value
|
self.config[key] = value
|
||||||
|
|
||||||
|
def __getattr__(self, attr):
|
||||||
|
# We treat this directly interacting with the dictionary
|
||||||
|
return getattr(self.config, attr)
|
||||||
|
|
Loading…
Reference in New Issue