Skip to content

Commit ee3a652

Browse files
Revert "fix: fix the load of GGP dependencies (#187)" (#188)
This reverts commit c7572e7.
1 parent c7572e7 commit ee3a652

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@
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()
3027

3128
from geos.processing.generic_processing_tools.CreateConstantAttributePerRegion import CreateConstantAttributePerRegion
3229

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
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
68
# Add Enum for filter categories
79
from functools import update_wrapper
810
from typing import Protocol, Any, Type, TypeVar, Callable, runtime_checkable, Union
@@ -23,6 +25,13 @@
2325
vtkInformationVector,
2426
)
2527

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+
2635
__doc__ = """
2736
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.
2837
@@ -51,7 +60,6 @@ class FilterCategory( str, Enum ):
5160

5261
U = TypeVar( 'U', bound='vtkDataObject' )
5362

54-
5563
@runtime_checkable
5664
class IsSISOFilter( Protocol[ U ] ):
5765
"""Protocol to ensure that the wrapped filter defines the correct Filter core function."""

0 commit comments

Comments
 (0)