mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-10-18 05:45:12 +02:00
9 lines
345 B
Python
9 lines
345 B
Python
# SPDX-License-Identifier: MPL-2.0
|
|
# This file is used to get the version of the package from the VERSION file
|
|
from importlib.metadata import PackageNotFoundError, version
|
|
from pathlib import Path
|
|
|
|
try:
|
|
__version__ = version('aare')
|
|
except PackageNotFoundError:
|
|
__version__ = Path(__file__).parent.joinpath('VERSION').read_text().strip() |