From 821a3b0d409c038bce9299341da4864e996210ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Berland?= Date: Tue, 20 Sep 2022 13:56:58 +0200 Subject: [PATCH] Reverse order of ert.shared vs ert_shared Importing the deprecated package name can trigger a deprecation warning. --- src/fmu/dataio/hook_implementations/jobs.py | 6 +++--- src/fmu/dataio/scripts/create_case_metadata.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/fmu/dataio/hook_implementations/jobs.py b/src/fmu/dataio/hook_implementations/jobs.py index ed867ae7b..9c06e79fb 100644 --- a/src/fmu/dataio/hook_implementations/jobs.py +++ b/src/fmu/dataio/hook_implementations/jobs.py @@ -1,9 +1,9 @@ try: - from ert_shared.plugins.plugin_manager import hook_implementation - from ert_shared.plugins.plugin_response import plugin_response -except ModuleNotFoundError: from ert.shared.plugins.plugin_manager import hook_implementation from ert.shared.plugins.plugin_response import plugin_response +except ModuleNotFoundError: + from ert_shared.plugins.plugin_manager import hook_implementation + from ert_shared.plugins.plugin_response import plugin_response @hook_implementation diff --git a/src/fmu/dataio/scripts/create_case_metadata.py b/src/fmu/dataio/scripts/create_case_metadata.py index 307b0ccb2..cbba51eb7 100644 --- a/src/fmu/dataio/scripts/create_case_metadata.py +++ b/src/fmu/dataio/scripts/create_case_metadata.py @@ -14,9 +14,9 @@ from pathlib import Path try: - from ert_shared.plugins.plugin_manager import hook_implementation # type: ignore + from ert.shared.plugins.plugin_manager import hook_implementation # type: ignore except ModuleNotFoundError: - from ert.shared.plugins.plugin_manager import hook_implementation + from ert_shared.plugins.plugin_manager import hook_implementation # type: ignore try: from ert import ErtScript # type: ignore