Skip to content

Commit

Permalink
Fix CachedResolver relative path windows issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaScheller committed Feb 27, 2024
1 parent f9638f1 commit 960075d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CachedResolver/PythonExpose.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def CreateRelativePathIdentifier(resolver, anchoredAssetPath, assetPath, anchorA
LOG.debug("::: Resolver.CreateRelativePathIdentifier | {} | {} | {}".format(anchoredAssetPath, assetPath, anchorAssetPath))
"""The code below is only needed to verify that UnitTests work."""
UnitTestHelper.create_relative_path_identifier_call_counter += 1
remappedRelativePathIdentifier = f"relativePath|{assetPath}?{anchorAssetPath}"
remappedRelativePathIdentifier = f"relativePath|{assetPath}?{anchorAssetPath}".replace("\\", "/")
resolver.AddCachedRelativePathIdentifierPair(anchoredAssetPath, remappedRelativePathIdentifier)
return remappedRelativePathIdentifier

Expand Down

0 comments on commit 960075d

Please sign in to comment.