diff --git a/geos-pv/src/geos/pv/plugins/PVCreateConstantAttributePerRegion.py b/geos-pv/src/geos/pv/plugins/PVCreateConstantAttributePerRegion.py index fb5782e97..895df71e5 100644 --- a/geos-pv/src/geos/pv/plugins/PVCreateConstantAttributePerRegion.py +++ b/geos-pv/src/geos/pv/plugins/PVCreateConstantAttributePerRegion.py @@ -24,6 +24,9 @@ # 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 960c708b8..57a3d83e3 100644 --- a/geos-pv/src/geos/pv/utils/details.py +++ b/geos-pv/src/geos/pv/utils/details.py @@ -3,8 +3,6 @@ # 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 @@ -25,13 +23,6 @@ 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. @@ -60,6 +51,7 @@ 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."""