Queer European MD passionate about IT
Prechádzať zdrojové kódy

Absolute path in database_url

Davte 5 rokov pred
rodič
commit
180545ea90
2 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 1 1
      ciclopibot/__init__.py
  2. 1 1
      ciclopibot/bot.py

+ 1 - 1
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"

+ 1 - 1
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(