summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-11-14 00:45:15 +0100
committermathieui <mathieui@mathieui.net>2011-11-14 00:45:15 +0100
commita5f115a6e202a07f3f2dc7ac5ece0d0ea9af4099 (patch)
tree1b95d5f5052d2e3f738cd52eb262302de865bc9b
parentd0beb6ac86cdd3bd2c7a1a96c95b1b76e03f38c8 (diff)
downloadpoezio-a5f115a6e202a07f3f2dc7ac5ece0d0ea9af4099.tar.gz
poezio-a5f115a6e202a07f3f2dc7ac5ece0d0ea9af4099.tar.bz2
poezio-a5f115a6e202a07f3f2dc7ac5ece0d0ea9af4099.tar.xz
poezio-a5f115a6e202a07f3f2dc7ac5ece0d0ea9af4099.zip
Fix Plugin.config.get to use the right section instead of Poezio
-rw-r--r--src/plugin.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugin.py b/src/plugin.py
index 15f7d1cf..137f704f 100644
--- a/src/plugin.py
+++ b/src/plugin.py
@@ -11,6 +11,11 @@ class PluginConfig(config.Config):
RawConfigParser.__init__(self, None)
self.read()
+ def get(self, option, default, section=None):
+ if not section:
+ section = self.module_name
+ return config.Config.get(self, option, default, section)
+
def read(self):
"""Read the config file"""
RawConfigParser.read(self, self.file_name)