diff --git a/dm_cli/utils/utils.py b/dm_cli/utils/utils.py index d7579ad..50fb922 100644 --- a/dm_cli/utils/utils.py +++ b/dm_cli/utils/utils.py @@ -126,7 +126,7 @@ def get_root_packages_in_data_sources(path: str) -> dict: data_source_names.append(data_source_definition.replace(".json", "")) root_packages_in_data_sources = {} for data_source in data_source_names: - root_packages: list[str] = os.listdir(data_dir / data_source) + root_packages: list[str] = os.listdir(os.path.join(data_dir, data_source)) root_packages_in_data_sources[data_source] = root_packages return root_packages_in_data_sources @@ -143,5 +143,5 @@ def validate_entities_in_data_sources(data_source_contents: dict): for data_source_name in data_source_contents: root_packages = data_source_contents[data_source_name] for root_package_name in root_packages: - print("Validating entities in: ", f"{data_source_name}/{root_package_name}") - dmss_api.validate_existing_entity(f"{data_source_name}/{root_package_name}") + print("Validating entities in: ", f"{os.path.join(data_source_name, root_package_name)}") + dmss_api.validate_existing_entity(f"{os.path.join(data_source_name, root_package_name)}")