Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use abspath in command arguments #1660

Merged
merged 1 commit into from
Aug 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading