Skip to content

Commit

Permalink
convert env var to path
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaneve committed Jul 18, 2023
1 parent 3324bca commit f52293e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dev/dags/basic_cosmos_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from cosmos import DbtDag

DEFAULT_DBT_ROOT_PATH = Path(__file__).parent / "dbt"
DBT_ROOT_PATH = os.getenv("DBT_ROOT_PATH", DEFAULT_DBT_ROOT_PATH)
DBT_ROOT_PATH = Path(os.getenv("DBT_ROOT_PATH", DEFAULT_DBT_ROOT_PATH))

# [START local_example]
basic_cosmos_dag = DbtDag(
Expand Down
2 changes: 1 addition & 1 deletion dev/dags/basic_cosmos_task_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from cosmos import DbtTaskGroup

DEFAULT_DBT_ROOT_PATH = Path(__file__).parent / "dbt"
DBT_ROOT_PATH = os.getenv("DBT_ROOT_PATH", DEFAULT_DBT_ROOT_PATH)
DBT_ROOT_PATH = Path(os.getenv("DBT_ROOT_PATH", DEFAULT_DBT_ROOT_PATH))


@dag(
Expand Down

0 comments on commit f52293e

Please sign in to comment.