From 692e48a4849b0d5200870c7a308131a684312663 Mon Sep 17 00:00:00 2001 From: paloma-martinez <104762252+paloma-martinez@users.noreply.github.com> Date: Mon, 24 Nov 2025 16:15:51 +0100 Subject: [PATCH] Revert "fix: fix the load of GGP dependencies (#187)" This reverts commit c7572e71460493fcb128c2d4790765177102f9d0. --- .../pv/plugins/PVCreateConstantAttributePerRegion.py | 3 --- geos-pv/src/geos/pv/utils/details.py | 10 +++++++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/geos-pv/src/geos/pv/plugins/PVCreateConstantAttributePerRegion.py b/geos-pv/src/geos/pv/plugins/PVCreateConstantAttributePerRegion.py index 895df71e5..fb5782e97 100644 --- a/geos-pv/src/geos/pv/plugins/PVCreateConstantAttributePerRegion.py +++ b/geos-pv/src/geos/pv/plugins/PVCreateConstantAttributePerRegion.py @@ -24,9 +24,6 @@ # update sys.path to load all GEOS Python Package dependencies geos_pv_path: Path = Path( __file__ ).parent.parent.parent.parent.parent sys.path.insert( 0, str( geos_pv_path / "src" ) ) -from geos.pv.utils.config import update_paths - -update_paths() from geos.processing.generic_processing_tools.CreateConstantAttributePerRegion import CreateConstantAttributePerRegion diff --git a/geos-pv/src/geos/pv/utils/details.py b/geos-pv/src/geos/pv/utils/details.py index 57a3d83e3..960c708b8 100644 --- a/geos-pv/src/geos/pv/utils/details.py +++ b/geos-pv/src/geos/pv/utils/details.py @@ -3,6 +3,8 @@ # SPDX-FileContributor: Martin Lemay, Romain Baville, Jacques Franc # ruff: noqa: E402 # disable Module level import not at top of file # mypy: disable-error-code="misc" +import sys +from pathlib import Path # Add Enum for filter categories from functools import update_wrapper from typing import Protocol, Any, Type, TypeVar, Callable, runtime_checkable, Union @@ -23,6 +25,13 @@ vtkInformationVector, ) +# update sys.path to load all GEOS Python Package dependencies +geos_pv_path: Path = Path( __file__ ).parent.parent.parent.parent.parent +sys.path.insert( 0, str( geos_pv_path / "src" ) ) +from geos.pv.utils.config import update_paths + +update_paths() + __doc__ = """ Set of decorators that allows quicker generation of DataSet derived to the same DataSet derived filters. If it a list of type is provided, then the unique output type is set to vtkDataObject. @@ -51,7 +60,6 @@ class FilterCategory( str, Enum ): U = TypeVar( 'U', bound='vtkDataObject' ) - @runtime_checkable class IsSISOFilter( Protocol[ U ] ): """Protocol to ensure that the wrapped filter defines the correct Filter core function."""