summaryrefslogtreecommitdiff
path: root/poezio/plugin.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2022-04-07 19:28:46 +0200
committermathieui <mathieui@mathieui.net>2022-04-07 19:36:04 +0200
commit84070a30c28be243ed40e58158de93356585da9b (patch)
tree5b5424ab6d9cc0ac23ad6f848a0b505fd4e5151a /poezio/plugin.py
parent8601dc82c5fe41f68f8e0b5d989b2599d156969d (diff)
downloadpoezio-84070a30c28be243ed40e58158de93356585da9b.tar.gz
poezio-84070a30c28be243ed40e58158de93356585da9b.tar.bz2
poezio-84070a30c28be243ed40e58158de93356585da9b.tar.xz
poezio-84070a30c28be243ed40e58158de93356585da9b.zip
config: make the default section dynamic (plugins)
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.
Diffstat (limited to 'poezio/plugin.py')
-rw-r--r--poezio/plugin.py1
1 files changed, 1 insertions, 0 deletions
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):