Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion cosmos/operators/virtualenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def on_kill(self) -> None:

def _prepare_virtualenv(self) -> Any:
self.log.info(f"Creating or updating the virtualenv at `{self.virtualenv_dir}")
py_bin = prepare_virtualenv(
py_bin: str = prepare_virtualenv(
Comment thread
pankajastro marked this conversation as resolved.
Outdated
venv_directory=str(self.virtualenv_dir),
python_bin=PY_INTERPRETER,
system_site_packages=self.py_system_site_packages,
Expand Down
4 changes: 2 additions & 2 deletions dev/dags/example_virtualenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from cosmos import DbtTaskGroup, ExecutionConfig, ExecutionMode, ProfileConfig, ProjectConfig
from cosmos.profiles import PostgresUserPasswordProfileMapping

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

Expand All @@ -28,7 +28,7 @@

# [START virtualenv_example]
@dag(
schedule_interval="@daily",
schedule="@daily",
start_date=datetime(2023, 1, 1),
catchup=False,
)
Expand Down
2 changes: 1 addition & 1 deletion dev/dags/example_virtualenv_mini.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from cosmos.operators.virtualenv import DbtSeedVirtualenvOperator
from cosmos.profiles import PostgresUserPasswordProfileMapping

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

profile_config = ProfileConfig(
Expand Down
1 change: 1 addition & 0 deletions scripts/airflow3/dags/example_virtualenv.py
1 change: 1 addition & 0 deletions scripts/airflow3/dags/example_virtualenv_mini.py