From d24a0654ffb2313f49975460715501246d3faff9 Mon Sep 17 00:00:00 2001 From: Nick Schrock Date: Mon, 23 Dec 2024 13:20:39 -0800 Subject: [PATCH] [components] Remove duplicative pushd (#26655) ## Summary & Motivation This is done in `load_params`, so not necessary in the subclass. ## How I Tested These Changes BK --- .../dagster-components/dagster_components/lib/dbt_project.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/python_modules/libraries/dagster-components/dagster_components/lib/dbt_project.py b/python_modules/libraries/dagster-components/dagster_components/lib/dbt_project.py index 4222ef7ab9f89..fea3551ab2c74 100644 --- a/python_modules/libraries/dagster-components/dagster_components/lib/dbt_project.py +++ b/python_modules/libraries/dagster-components/dagster_components/lib/dbt_project.py @@ -6,7 +6,6 @@ from dagster._core.definitions.asset_key import AssetKey from dagster._core.definitions.definitions_class import Definitions from dagster._core.execution.context.asset_execution_context import AssetExecutionContext -from dagster._utils import pushd from dagster_dbt import DagsterDbtTranslator, DbtCliResource, DbtProject, dbt_assets from dbt.cli.main import dbtRunner from pydantic import BaseModel, Field @@ -90,9 +89,7 @@ def __init__( @classmethod def load(cls, context: ComponentLoadContext) -> Self: - # all paths should be resolved relative to the directory we're in - with pushd(str(context.path)): - loaded_params = context.load_params(cls.params_schema) + loaded_params = context.load_params(cls.params_schema) return cls( dbt_resource=loaded_params.dbt,