From 180545ea90a4929ec88de5f08f4a333942b94f25 Mon Sep 17 00:00:00 2001 From: Davte Date: Sun, 21 Jul 2019 20:04:17 +0200 Subject: [PATCH] Absolute path in database_url --- ciclopibot/__init__.py | 2 +- ciclopibot/bot.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ciclopibot/__init__.py b/ciclopibot/__init__.py index 51055b6..41a575f 100644 --- a/ciclopibot/__init__.py +++ b/ciclopibot/__init__.py @@ -3,6 +3,6 @@ __author__ = "Davide Testa" __email__ = "davide@davte.it" __license__ = "GNU General Public License v3.0" -__version__ = "1.0.8" +__version__ = "1.0.9" __maintainer__ = "Davide Testa" __contact__ = "t.me/davte" diff --git a/ciclopibot/bot.py b/ciclopibot/bot.py index 23e369b..54a8471 100644 --- a/ciclopibot/bot.py +++ b/ciclopibot/bot.py @@ -103,7 +103,7 @@ if __name__ == '__main__': # Instantiate bot bot = davtelepot.bot.Bot(token=bot_token, - database_url='ciclopibot/data/ciclopi.db', + database_url=f'{path}/data/ciclopi.db', hostname=hostname, certificate=certificate) bot.set_path(path) bot.set_unknown_command_message(