mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 19:52:54 +01:00
Extra data directory, no yuo\!
This commit is contained in:
parent
5c4d0e48cb
commit
667b5ff0b7
@ -142,9 +142,8 @@ class ChannelDBHandler(object):
|
|||||||
def makeFilename(self, channel):
|
def makeFilename(self, channel):
|
||||||
"""Override this to specialize the filenames of your databases."""
|
"""Override this to specialize the filenames of your databases."""
|
||||||
channel = ircutils.toLower(channel)
|
channel = ircutils.toLower(channel)
|
||||||
prefix = makeChannelFilename(channel,
|
className = self.__class__.__name__
|
||||||
self.__class__.__name__ + self.suffix)
|
return makeChannelFilename(channel, className + self.suffix)
|
||||||
return os.path.join(conf.supybot.directories.data(), prefix)
|
|
||||||
|
|
||||||
def makeDb(self, filename):
|
def makeDb(self, filename):
|
||||||
"""Override this to create your databases."""
|
"""Override this to create your databases."""
|
||||||
|
Loading…
Reference in New Issue
Block a user