From 43184dab58ea22d46c0a1d7611bd87882ed58d57 Mon Sep 17 00:00:00 2001 From: spline Date: Tue, 15 Jan 2013 14:23:59 -0500 Subject: [PATCH] Consolidate dbfilename --- plugin.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugin.py b/plugin.py index 0384769..ee82c1a 100644 --- a/plugin.py +++ b/plugin.py @@ -68,7 +68,7 @@ class Weather(callbacks.Plugin): def __init__(self, irc): self.__parent = super(Weather, self) self.__parent.__init__(irc) - self.db = WeatherDB(dbfilename) + self.db = WeatherDB(conf.supybot.directories.data.dirize("Weather.db")) self.APIKEY = self.registryValue('apiKey') world.flushers.append(self.db.flush) @@ -584,8 +584,6 @@ class Weather(callbacks.Plugin): 'dewpoint':'', 'metric':''}), optional('text')]) -dbfilename = conf.supybot.directories.data.dirize("Weather.db") - Class = Weather # vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=250: