diff --git a/examples/pipeline_dsl_text_pipeline.py b/examples/pipeline_dsl_text_pipeline.py index e74248a7..18ed7ae6 100644 --- a/examples/pipeline_dsl_text_pipeline.py +++ b/examples/pipeline_dsl_text_pipeline.py @@ -33,17 +33,9 @@ def normalize_text(value: str) -> str: """Small helper intentionally kept outside the step for codegen extraction.""" - import importlib.util - from pathlib import Path + import text_utils - module_path = Path(__file__).with_name("text_utils.py") - spec = importlib.util.spec_from_file_location("text_utils", module_path) - if spec is None or spec.loader is None: - raise RuntimeError(f"Could not load helper module from {module_path}") - - module = importlib.util.module_from_spec(spec) - spec.loader.exec_module(module) - return module.clean_text(value) + return text_utils.clean_text(value) @step(