Queer European MD passionate about IT
Ver código fonte

Relative imports

Davte 5 anos atrás
pai
commit
18ff1ad84e
2 arquivos alterados com 4 adições e 4 exclusões
  1. 1 1
      ciclopibot/__init__.py
  2. 3 3
      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.4"
+__version__ = "1.0.5"
 __maintainer__ = "Davide Testa"
 __contact__ = "t.me/davte"

+ 3 - 3
ciclopibot/bot.py

@@ -59,15 +59,15 @@ supported_languages = {
 if __name__ == '__main__':
     path = os.path.dirname(__file__)
     try:
-        from data.config import log_file_name
+        from .data.config import log_file_name
     except ImportError:
         log_file_name = 'CicloPi.info.log'
     try:
-        from data.config import errors_file_name
+        from .data.config import errors_file_name
     except ImportError:
         errors_file_name = 'CicloPi.errors.log'
     try:
-        from data.config import local_host, port
+        from .data.config import local_host, port
     except ImportError:
         local_host, port = '127.0.0.1', 3000
     log_file = f"{path}/data/{log_file_name}"