Use per-instance path for persistent storage

This commit is contained in:
Dan Elkouby 2018-05-05 16:16:41 +03:00
parent 5310c55a93
commit 694048ecfc
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ class Uniborg(TelegramClient):
mod.borg = self mod.borg = self
mod.logger = logging.getLogger(shortname) mod.logger = logging.getLogger(shortname)
mod.storage = self.storage(shortname) mod.storage = self.storage(f"{self._name}/{shortname}")
spec.loader.exec_module(mod) spec.loader.exec_module(mod)
self._plugins[shortname] = mod self._plugins[shortname] = mod