Skip to content

Commit c7572e7

Browse files
fix: fix the load of GGP dependencies (#187)
1 parent 1c549e3 commit c7572e7

2 files changed

Lines changed: 4 additions & 9 deletions

File tree

geos-pv/src/geos/pv/plugins/PVCreateConstantAttributePerRegion.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
# update sys.path to load all GEOS Python Package dependencies
2525
geos_pv_path: Path = Path( __file__ ).parent.parent.parent.parent.parent
2626
sys.path.insert( 0, str( geos_pv_path / "src" ) )
27+
from geos.pv.utils.config import update_paths
28+
29+
update_paths()
2730

2831
from geos.processing.generic_processing_tools.CreateConstantAttributePerRegion import CreateConstantAttributePerRegion
2932

geos-pv/src/geos/pv/utils/details.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
# SPDX-FileContributor: Martin Lemay, Romain Baville, Jacques Franc
44
# ruff: noqa: E402 # disable Module level import not at top of file
55
# mypy: disable-error-code="misc"
6-
import sys
7-
from pathlib import Path
86
# Add Enum for filter categories
97
from functools import update_wrapper
108
from typing import Protocol, Any, Type, TypeVar, Callable, runtime_checkable, Union
@@ -25,13 +23,6 @@
2523
vtkInformationVector,
2624
)
2725

28-
# update sys.path to load all GEOS Python Package dependencies
29-
geos_pv_path: Path = Path( __file__ ).parent.parent.parent.parent.parent
30-
sys.path.insert( 0, str( geos_pv_path / "src" ) )
31-
from geos.pv.utils.config import update_paths
32-
33-
update_paths()
34-
3526
__doc__ = """
3627
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.
3728
@@ -60,6 +51,7 @@ class FilterCategory( str, Enum ):
6051

6152
U = TypeVar( 'U', bound='vtkDataObject' )
6253

54+
6355
@runtime_checkable
6456
class IsSISOFilter( Protocol[ U ] ):
6557
"""Protocol to ensure that the wrapped filter defines the correct Filter core function."""

0 commit comments

Comments
 (0)