Skip to content

Commit

Permalink
Fix default_profiles_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
tnk-ysk committed Feb 9, 2025
1 parent 7fddd6e commit 403de09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/dbt/cli/resolvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ def default_project_dir() -> Path:


def default_profiles_dir() -> Path:
return Path.cwd() if (Path.cwd() / "profiles.yml").exists() else Path.home() / ".dbt"
paths = [Path.cwd(), Path.home() / ".dbt"]
return next((x for x in paths if (x / "profiles.yml").exists()), Path.cwd())


def default_log_path(project_dir: Path, verify_version: bool = False) -> Path:
Expand Down

0 comments on commit 403de09

Please sign in to comment.