Skip to content

Commit

Permalink
refactor(dbt): move scaffold to subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
rexledesma committed Feb 1, 2024
1 parent f6a0162 commit 7685c72
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions python_modules/libraries/dagster-dbt/dagster_dbt/cli/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from rich.syntax import Syntax
from typing_extensions import Annotated

from ..include import STARTER_PROJECT_PATH
from ..include.starter_project import DAGSTER_DBT_STARTER_PROJECT_PATH
from ..version import __version__ as dagster_dbt_version

app = typer.Typer(
Expand Down Expand Up @@ -123,7 +123,7 @@ def copy_scaffold(
for target in profile["outputs"].values()
]

shutil.copytree(src=STARTER_PROJECT_PATH, dst=dagster_project_dir)
shutil.copytree(src=DAGSTER_DBT_STARTER_PROJECT_PATH, dst=dagster_project_dir)
dagster_project_dir.joinpath("__init__.py").unlink()

if use_dbt_project_package_data_dir:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
from pathlib import Path

STARTER_PROJECT_PATH = Path(__file__).joinpath("..").resolve()
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from pathlib import Path

DAGSTER_DBT_STARTER_PROJECT_PATH = Path(__file__).joinpath("..").resolve()

0 comments on commit 7685c72

Please sign in to comment.