From d3864a8474d8fe172a6759c0e40e67bbb1f5d67e Mon Sep 17 00:00:00 2001 From: Diego Quintana Date: Wed, 5 Feb 2025 20:59:19 -0300 Subject: [PATCH 1/2] fix: resolve to DBT_PROFILES_DIR if specified without joining with project_dir see https://github.com/AltimateAI/vscode-dbt-power-user/issues/1554#issuecomment-2638276756 --- dbt_core_integration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbt_core_integration.py b/dbt_core_integration.py index 0feff532f..53e86ac0f 100644 --- a/dbt_core_integration.py +++ b/dbt_core_integration.py @@ -217,7 +217,7 @@ def default_profiles_dir(project_dir): profiles_dir = os.path.expanduser(os.environ["DBT_PROFILES_DIR"]) if os.path.isabs(profiles_dir): return os.path.normpath(profiles_dir) - return os.path.normpath(os.path.join(project_dir, profiles_dir)) + return os.path.normpath(os.path.join(profiles_dir)) project_profiles_file = os.path.normpath(os.path.join(project_dir, "profiles.yml")) return ( project_dir From ee8e01096c753c740ac2759e88d51032b1f628ce Mon Sep 17 00:00:00 2001 From: Diego Quintana Date: Wed, 5 Feb 2025 21:04:46 -0300 Subject: [PATCH 2/2] fix: remove unnecessary path join --- dbt_core_integration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbt_core_integration.py b/dbt_core_integration.py index 53e86ac0f..927b56ee0 100644 --- a/dbt_core_integration.py +++ b/dbt_core_integration.py @@ -217,7 +217,7 @@ def default_profiles_dir(project_dir): profiles_dir = os.path.expanduser(os.environ["DBT_PROFILES_DIR"]) if os.path.isabs(profiles_dir): return os.path.normpath(profiles_dir) - return os.path.normpath(os.path.join(profiles_dir)) + return os.path.normpath(profiles_dir) project_profiles_file = os.path.normpath(os.path.join(project_dir, "profiles.yml")) return ( project_dir