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