view libervia/__init__.py @ 1440:939b5c643f3d

doc: use VERSION file to get version in the same way as for backend
author Goffi <goffi@goffi.org>
date Fri, 18 Jun 2021 15:31:29 +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()