mirror of
git://soft.sys114.com/klipper
synced 2026-02-04 16:30:37 +09:00
configfile: add get_prefix_options method
Signed-off-by: Janar Sööt <janar.soot@gmail.com>
This commit is contained in:
committed by
Kevin O'Connor
parent
8c2991ceac
commit
d9e35481be
@@ -74,6 +74,9 @@ class ConfigWrapper:
|
||||
def get_prefix_sections(self, prefix):
|
||||
return [self.getsection(s) for s in self.fileconfig.sections()
|
||||
if s.startswith(prefix)]
|
||||
def get_prefix_options(self, prefix):
|
||||
return [o for o in self.fileconfig.options(self.section)
|
||||
if o.startswith(prefix)]
|
||||
|
||||
AUTOSAVE_HEADER = """
|
||||
#*# <---------------------- SAVE_CONFIG ---------------------->
|
||||
|
||||
Reference in New Issue
Block a user