parent
094b90cf86
commit
87c3f03719
@ -153,11 +153,14 @@ class Printer:
|
|||||||
return []
|
return []
|
||||||
|
|
||||||
def get_config_section(self, section):
|
def get_config_section(self, section):
|
||||||
|
return self.config[section] if section in self.config else False
|
||||||
|
|
||||||
|
def get_macro(self, macro):
|
||||||
return next(
|
return next(
|
||||||
(
|
(
|
||||||
self.config[key]
|
self.config[key]
|
||||||
for key in self.config.keys()
|
for key in self.config.keys()
|
||||||
if key.find(section) > -1
|
if key.find(macro) > -1
|
||||||
),
|
),
|
||||||
False,
|
False,
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user