diff --git a/products/template/build_scripts/export.py b/products/template/build_scripts/export.py index 58cfb78c69..eb9e93776c 100644 --- a/products/template/build_scripts/export.py +++ b/products/template/build_scripts/export.py @@ -1,5 +1,6 @@ import shutil +from dcpy.configuration import PRODUCT_METADATA_REPO_PATH from dcpy.utils.logging import logger from dcpy.models.product.metadata import OrgMetadata from dcpy.connectors.github import clone_repo @@ -27,8 +28,7 @@ def generate_data_dictionaries(): dataset_metadata_path = PRODUCT_PATH / "data_dictionary.yml" - org_metadata_path = clone_repo("product-metadata", PRODUCT_PATH) - org_metadata = OrgMetadata.from_path(org_metadata_path) + org_metadata = OrgMetadata.from_path(PRODUCT_METADATA_REPO_PATH) metadata = org_metadata.product("template_db").dataset("template_db") metadata.write_to_yaml(dataset_metadata_path)