Skip to content

Commit

Permalink
Merge pull request #1660 from elementary-data/use-abspath-for-dbt-runner
Browse files Browse the repository at this point in the history
use abspath in command arguments
  • Loading branch information
ofek1weiss authored Aug 5, 2024
2 parents f3a22c3 + d13008d commit e984d1e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions elementary/clients/dbt/command_line_dbt_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])

Expand Down

0 comments on commit e984d1e

Please sign in to comment.