Queer European MD passionate about IT
Browse Source

Use abspath for portability

Davte 4 years ago
parent
commit
e2cf4e77ff
2 changed files with 6 additions and 2 deletions
  1. 1 1
      ciclopibot/__init__.py
  2. 5 1
      ciclopibot/bot.py

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

+ 5 - 1
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: