From 694048ecfc1c30317eeca084aa6c85d431ea19bb Mon Sep 17 00:00:00 2001 From: Dan Elkouby Date: Sat, 5 May 2018 16:16:41 +0300 Subject: [PATCH] Use per-instance path for persistent storage --- uniborg/uniborg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uniborg/uniborg.py b/uniborg/uniborg.py index 0a1706a..2c0dfd9 100644 --- a/uniborg/uniborg.py +++ b/uniborg/uniborg.py @@ -70,7 +70,7 @@ class Uniborg(TelegramClient): mod.borg = self mod.logger = logging.getLogger(shortname) - mod.storage = self.storage(shortname) + mod.storage = self.storage(f"{self._name}/{shortname}") spec.loader.exec_module(mod) self._plugins[shortname] = mod