From c50126565227ca48ddca5a4f7d5098723621962e Mon Sep 17 00:00:00 2001 From: Daniel Berge Sollien Date: Thu, 21 Dec 2023 13:27:08 +0100 Subject: [PATCH] Find version in dunder init --- src/fmu/sumo/sim2sumo/__init__.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/fmu/sumo/sim2sumo/__init__.py b/src/fmu/sumo/sim2sumo/__init__.py index 8db66d3d..abcc9afd 100644 --- a/src/fmu/sumo/sim2sumo/__init__.py +++ b/src/fmu/sumo/sim2sumo/__init__.py @@ -1 +1,6 @@ -__path__ = __import__("pkgutil").extend_path(__path__, __name__) +try: + from ._version import version + + __version__ = version +except ImportError: + __version__ = "0.0.0" \ No newline at end of file