diff --git a/examples/docs_beta_snippets/docs_beta_snippets/guides/data-modeling/asset-factories/advanced-yaml-asset-factory.py b/examples/docs_beta_snippets/docs_beta_snippets/guides/data-modeling/asset-factories/advanced-yaml-asset-factory.py index 784c2cd1f69c1..29a9ffcdca961 100644 --- a/examples/docs_beta_snippets/docs_beta_snippets/guides/data-modeling/asset-factories/advanced-yaml-asset-factory.py +++ b/examples/docs_beta_snippets/docs_beta_snippets/guides/data-modeling/asset-factories/advanced-yaml-asset-factory.py @@ -69,4 +69,6 @@ def load_etl_jobs_from_yaml(yaml_path: str) -> dg.Definitions: # highlight-end -defs = load_etl_jobs_from_yaml(str(Path(__file__).parent / "etl_jobs_with_jinja.yaml")) +defs = load_etl_jobs_from_yaml( + "docs_beta_snippets/guides/data-modeling/asset-factories/etl_jobs_with_jinja.yaml" +) diff --git a/examples/docs_beta_snippets/docs_beta_snippets/guides/data-modeling/asset-factories/simple-yaml-asset-factory.py b/examples/docs_beta_snippets/docs_beta_snippets/guides/data-modeling/asset-factories/simple-yaml-asset-factory.py index 1265c7fa1dda8..4ad20a229047a 100644 --- a/examples/docs_beta_snippets/docs_beta_snippets/guides/data-modeling/asset-factories/simple-yaml-asset-factory.py +++ b/examples/docs_beta_snippets/docs_beta_snippets/guides/data-modeling/asset-factories/simple-yaml-asset-factory.py @@ -1,5 +1,3 @@ -from pathlib import Path - import dagster_aws.s3 as s3 import yaml @@ -38,5 +36,7 @@ def load_etl_jobs_from_yaml(yaml_path: str) -> dg.Definitions: return dg.Definitions.merge(*defs) -defs = load_etl_jobs_from_yaml(str(Path(__file__).parent / "etl_jobs.yaml")) +defs = load_etl_jobs_from_yaml( + "docs_beta_snippets/guides/data-modeling/asset-factories/etl_jobs.yaml" +) # highlight-end