Use abspath for portability

This commit is contained in:
Davte 2020-02-20 10:38:19 +01:00
parent 80b11addd3
commit e2cf4e77ff
2 changed files with 6 additions and 2 deletions

View File

@ -3,7 +3,7 @@
__author__ = "Davide Testa" __author__ = "Davide Testa"
__email__ = "davide@davte.it" __email__ = "davide@davte.it"
__license__ = "GNU General Public License v3.0" __license__ = "GNU General Public License v3.0"
__version__ = "1.1.10" __version__ = "1.1.11"
__maintainer__ = "Davide Testa" __maintainer__ = "Davide Testa"
__contact__ = "t.me/davte" __contact__ = "t.me/davte"

View File

@ -16,7 +16,11 @@ from .messages import (
) )
if __name__ == '__main__': if __name__ == '__main__':
path = os.path.dirname(__file__) path = os.path.dirname(
os.path.abspath(
__file__
)
)
try: try:
from .data.config import log_file_name from .data.config import log_file_name
except ImportError: except ImportError: