Skip to content

Commit

Permalink
🐛 fix platform specific normalized path logic
Browse files Browse the repository at this point in the history
  • Loading branch information
antirotor committed Sep 18, 2024
1 parent 6cc4b9a commit a6cda9a
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -343,14 +343,13 @@ def generate_pinning_file(
# Assume that the environment sets up the correct default AyonUsdResolver
resolver = Ar.GetResolver()
pinning_data = get_asset_dependencies(entry_usd, resolver)

# on Windows, we need to make the drive letter lower case.
normalized_data = {}
if sys.platform.startswith('win'):
for key, val in pinning_data.items():
normalized_data[_normalize_path(key)] = _normalize_path(val)

pinning_data = normalized_data
pinning_data = {
_normalize_path(key): _normalize_path(val)
for key, val in pinning_data.items()
}

rootless_pinning_data = remove_root_from_dependency_info(
pinning_data, root_info
Expand Down

0 comments on commit a6cda9a

Please sign in to comment.