Updating config parser
This commit is contained in:
parent
6b63b87c42
commit
aac2316d74
1 changed files with 5 additions and 2 deletions
|
@ -233,7 +233,10 @@ class Config(util.store.Store):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def modules(self):
|
def modules(self):
|
||||||
return [item for sub in self.__args.modules for item in sub]
|
list_of_modules = self.get('modules', None)
|
||||||
|
if (list_of_modules is None) or (type(list_of_modules) != list):
|
||||||
|
list_of_modules = [item for sub in self.__args.modules for item in sub]
|
||||||
|
return list_of_modules
|
||||||
|
|
||||||
"""Returns the global update interval
|
"""Returns the global update interval
|
||||||
|
|
||||||
|
@ -278,7 +281,7 @@ class Config(util.store.Store):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def theme(self):
|
def theme(self):
|
||||||
return self.__args.theme
|
return self.get('theme', self.__args.theme)
|
||||||
|
|
||||||
"""Returns the configured iconset name
|
"""Returns the configured iconset name
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue