diff options
author | mathieui <mathieui@mathieui.net> | 2011-11-14 00:45:15 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2011-11-14 00:45:15 +0100 |
commit | a5f115a6e202a07f3f2dc7ac5ece0d0ea9af4099 (patch) | |
tree | 1b95d5f5052d2e3f738cd52eb262302de865bc9b | |
parent | d0beb6ac86cdd3bd2c7a1a96c95b1b76e03f38c8 (diff) | |
download | poezio-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.py | 5 |
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) |