Merge pull request 'Replaced deprecated module pkg_resources' (#311) from ribetm/py312 into master

Reviewed-on: #311
This commit is contained in:
thubrecht 2024-10-21 10:18:18 +02:00
commit 12ceea413c

View file

@ -1,6 +1,6 @@
from pkg_resources import DistributionNotFound, get_distribution
from importlib.metadata import version as _get_version, PackageNotFoundError
try:
__version__ = get_distribution(__name__).version
except DistributionNotFound:
__version__ = _get_version(__name__)
except PackageNotFoundError:
pass