diff --git a/glass/__init__.py b/glass/__init__.py index 8564d440..4f06d29b 100644 --- a/glass/__init__.py +++ b/glass/__init__.py @@ -1,6 +1,8 @@ +from importlib.metadata import PackageNotFoundError + try: - from glass._version import __version__, __version_tuple__ -except ModuleNotFoundError: + from ._version import __version__, __version_tuple__ +except PackageNotFoundError: pass from glass.fields import (