Skip to content

Commit

Permalink
fix: make path concatenation in utils.py os independent
Browse files Browse the repository at this point in the history
  • Loading branch information
KristianKjerstad committed Aug 2, 2023
1 parent c30f6be commit 734969a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dm_cli/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)}")

0 comments on commit 734969a

Please sign in to comment.