mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
self.open() needs to happen *after* self.filename is set
This commit is contained in:
parent
224cacc966
commit
0b62247ccb
@ -62,9 +62,9 @@ def configure(onStart, afterConnect, advanced):
|
|||||||
class HeraldDB(object):
|
class HeraldDB(object):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.heralds = {}
|
self.heralds = {}
|
||||||
self.open()
|
|
||||||
dataDir = conf.supybot.directories.data()
|
dataDir = conf.supybot.directories.data()
|
||||||
self.filename = os.path.join(dataDir, 'Herald.db')
|
self.filename = os.path.join(dataDir, 'Herald.db')
|
||||||
|
self.open()
|
||||||
|
|
||||||
def open(self):
|
def open(self):
|
||||||
dataDir = conf.supybot.directories.data()
|
dataDir = conf.supybot.directories.data()
|
||||||
|
Loading…
Reference in New Issue
Block a user