Skip to content

Commit

Permalink
Reverse order of ert.shared vs ert_shared (#249)
Browse files Browse the repository at this point in the history
Importing the deprecated package name can trigger
a deprecation warning.
  • Loading branch information
berland authored Sep 20, 2022
1 parent ebf4b72 commit 4236289
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/fmu/dataio/hook_implementations/jobs.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/fmu/dataio/scripts/create_case_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4236289

Please sign in to comment.