9 lines
235 B
Python
9 lines
235 B
Python
from importlib.metadata import PackageNotFoundError, version
|
|
|
|
VERSION_FALLBACK = "uninstalled_version"
|
|
try:
|
|
__version__ = version(__name__.replace(".", "-"))
|
|
except PackageNotFoundError:
|
|
__version__ = VERSION_FALLBACK
|
|
pass
|