view libervia/__init__.py @ 1458:db13f5c768a0

server: `checkRedirection`: fix range variable + type hints + arg name: - fix wrong variable used for range - add type hints - use a better argument to show that a URL path is used and not a whole URL
author Goffi <goffi@goffi.org>
date Wed, 29 Sep 2021 17:39:08 +0200
parents ac2374c92294
children
line wrap: on
line source

import os.path

version_file = os.path.join(os.path.dirname(__file__), "VERSION")
with open(version_file) as f:
    __version__ = f.read().strip()