Skip to content

Commit 33a4a3e

Browse files
committed
WIP
1 parent e9de2dd commit 33a4a3e

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/dbt_core_interface/project.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,16 +121,19 @@ class DbtProject:
121121
def __init__(
122122
self,
123123
target: str | None = None,
124-
project_dir: str = DEFAULT_PROJECT_DIR,
125-
profiles_dir: str = DEFAULT_PROFILES_DIR,
124+
project_dir: str | None = None,
125+
profiles_dir: str | None = None,
126126
threads: int = 1,
127127
vars: dict[str, t.Any] | None = None,
128128
load: bool = True,
129129
) -> None:
130130
"""Initialize the dbt project."""
131-
if project_dir is not DEFAULT_PROJECT_DIR and profiles_dir is DEFAULT_PROFILES_DIR:
131+
if project_dir is not None and profiles_dir is None:
132132
profiles_dir = str(_get_profiles_dir(project_dir).resolve())
133133

134+
project_dir = project_dir or DEFAULT_PROJECT_DIR
135+
profiles_dir = profiles_dir or DEFAULT_PROFILES_DIR
136+
134137
self._base_params = DbtConfiguration(
135138
target=target,
136139
profiles_dir=profiles_dir,

0 commit comments

Comments
 (0)