From d13008d05434fd397dde52864b101a9220feffe1 Mon Sep 17 00:00:00 2001 From: Ofek Weiss Date: Mon, 5 Aug 2024 17:05:41 +0300 Subject: [PATCH] use abspath in command arguments --- elementary/clients/dbt/command_line_dbt_runner.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/elementary/clients/dbt/command_line_dbt_runner.py b/elementary/clients/dbt/command_line_dbt_runner.py index 8c9ed0a86..533c84d32 100644 --- a/elementary/clients/dbt/command_line_dbt_runner.py +++ b/elementary/clients/dbt/command_line_dbt_runner.py @@ -84,9 +84,11 @@ def _run_command( if capture_output: dbt_command_args.extend(["--log-format", log_format]) dbt_command_args.extend(command_args) - dbt_command_args.extend(["--project-dir", self.project_dir]) + dbt_command_args.extend(["--project-dir", os.path.abspath(self.project_dir)]) if self.profiles_dir: - dbt_command_args.extend(["--profiles-dir", self.profiles_dir]) + dbt_command_args.extend( + ["--profiles-dir", os.path.abspath(self.profiles_dir)] + ) if self.target: dbt_command_args.extend(["--target", self.target])