From 81fba8546e772f9a6a9a3500dedcda8dba5bd85e Mon Sep 17 00:00:00 2001 From: Davte Date: Fri, 19 Jul 2019 12:04:13 +0200 Subject: [PATCH] Relative imports use now dots --- ciclopibot/bot.py | 10 +++++----- ciclopibot/helper.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ciclopibot/bot.py b/ciclopibot/bot.py index 31ced21..e22a8c1 100644 --- a/ciclopibot/bot.py +++ b/ciclopibot/bot.py @@ -9,11 +9,11 @@ import sys from davtelepot.bot import Bot # Project modules -import bot_tools -import ciclopi -from data.passwords import bot_token -import helper -import roles +from . import bot_tools +from . import ciclopi +from . import helper +from . import roles +from .data.passwords import bot_token if __name__ == '__main__': path = os.path.dirname(__file__) diff --git a/ciclopibot/helper.py b/ciclopibot/helper.py index 371e864..a7a76e4 100644 --- a/ciclopibot/helper.py +++ b/ciclopibot/helper.py @@ -7,7 +7,7 @@ from davtelepot.utilities import ( ) # Project modules -import roles +from . import roles DENY_MESSAGE = ( "Chiedi di essere autorizzato: se la tua richiesta verrĂ  accolta, "