smbmc-exporter/src/smbmc_exporter/__init__.py

10 lines
294 B
Python
Raw Normal View History

2020-11-10 02:53:27 +00:00
try:
from importlib.metadata import version, PackageNotFoundError
except ImportError: # pragma: no cover
from importlib_metadata import version, PackageNotFoundError
try:
__version__ = version(__name__)
except PackageNotFoundError: # pragma: no cover
__version__ = "unknown"