From e2cf4e77ff607826f369cc80a3eaea3f28ee5103 Mon Sep 17 00:00:00 2001 From: Davte Date: Thu, 20 Feb 2020 10:38:19 +0100 Subject: [PATCH] Use abspath for portability --- ciclopibot/__init__.py | 2 +- ciclopibot/bot.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ciclopibot/__init__.py b/ciclopibot/__init__.py index f7205fe..687d6c4 100644 --- a/ciclopibot/__init__.py +++ b/ciclopibot/__init__.py @@ -3,7 +3,7 @@ __author__ = "Davide Testa" __email__ = "davide@davte.it" __license__ = "GNU General Public License v3.0" -__version__ = "1.1.10" +__version__ = "1.1.11" __maintainer__ = "Davide Testa" __contact__ = "t.me/davte" diff --git a/ciclopibot/bot.py b/ciclopibot/bot.py index 9b7d989..5f024f9 100644 --- a/ciclopibot/bot.py +++ b/ciclopibot/bot.py @@ -16,7 +16,11 @@ from .messages import ( ) if __name__ == '__main__': - path = os.path.dirname(__file__) + path = os.path.dirname( + os.path.abspath( + __file__ + ) + ) try: from .data.config import log_file_name except ImportError: