summaryrefslogtreecommitdiff
path: root/src/plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugin.py')
-rw-r--r--src/plugin.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugin.py b/src/plugin.py
index 7d1aeb4b..f35bdab1 100644
--- a/src/plugin.py
+++ b/src/plugin.py
@@ -27,6 +27,13 @@ class PluginConfig(config.Config):
if not self.has_section(self.module_name):
self.add_section(self.module_name)
+ def options(self, section=None):
+ if not section:
+ section = self.module_name
+ if not self.has_section(section):
+ self.add_section(section)
+ return config.Config.options(self, section)
+
def write(self):
"""Write the config to the disk"""
try: