From 84070a30c28be243ed40e58158de93356585da9b Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 7 Apr 2022 19:28:46 +0200 Subject: config: make the default section dynamic (plugins) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Having a fixed default section is not practical, so now use a placeholder value to allow fetching it dynamically. Please don’t name sections '__DEFAULT SECTION PLACEHOLDER__' thank you. --- poezio/plugin.py | 1 + 1 file changed, 1 insertion(+) (limited to 'poezio/plugin.py') diff --git a/poezio/plugin.py b/poezio/plugin.py index 4af27cbd..9101c6bb 100644 --- a/poezio/plugin.py +++ b/poezio/plugin.py @@ -26,6 +26,7 @@ class PluginConfig(config.Config): def __init__(self, filename, module_name, default=None): config.Config.__init__(self, filename, default=default) self.module_name = module_name + self.default_section = module_name self.read() def get(self, option, default=None, section=None): -- cgit v1.2.3