diff --git a/Utilities/pythontools/py_spec/__init__.py b/Utilities/pythontools/py_spec/__init__.py index 96905436..412e22fa 100644 --- a/Utilities/pythontools/py_spec/__init__.py +++ b/Utilities/pythontools/py_spec/__init__.py @@ -4,7 +4,7 @@ # Running on pre-3.8 Python; use importlib-metadata package import importlib_metadata as metadata -__version__ = metadata.version('py_spec') +__version__ = metadata.version(__package__ or __name__) from .ci import test from .input.spec_namelist import SPECNamelist