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