diff --git a/opendbt/client.py b/opendbt/client.py index 99d6f43..97c7b78 100644 --- a/opendbt/client.py +++ b/opendbt/client.py @@ -23,10 +23,12 @@ if Version(DBT_VERSION.to_version_string(skip_matcher=True)) > Version("1.8.0"): from opendbt import dbt18 + from dbt.task.docs import DOCS_INDEX_FILE_PATH dbt.adapters.factory.AdapterContainer.register_adapter = dbt18.register_adapter else: from opendbt import dbt17 + from dbt.include.global_project import DOCS_INDEX_FILE_PATH dbt.adapters.factory.AdapterContainer.register_adapter = dbt17.register_adapter diff --git a/opendbt/dbtcommon.py b/opendbt/dbtcommon.py index 91378b7..7eb174b 100644 --- a/opendbt/dbtcommon.py +++ b/opendbt/dbtcommon.py @@ -9,7 +9,6 @@ from pathlib import Path import click -from dbt.include.global_project import DOCS_INDEX_FILE_PATH def get_custom_adapter_config_value(self, config: 'AdapterRequiredConfig') -> str: