self.open() needs to happen *after* self.filename is set

This commit is contained in:
James Vega 2004-01-19 21:16:58 +00:00
parent 224cacc966
commit 0b62247ccb

View File

@ -62,9 +62,9 @@ def configure(onStart, afterConnect, advanced):
class HeraldDB(object):
def __init__(self):
self.heralds = {}
self.open()
dataDir = conf.supybot.directories.data()
self.filename = os.path.join(dataDir, 'Herald.db')
self.open()
def open(self):
dataDir = conf.supybot.directories.data()