Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows absolute path drive letter lower case #16

Open
Xelt opened this issue Aug 28, 2024 · 2 comments
Open

windows absolute path drive letter lower case #16

Xelt opened this issue Aug 28, 2024 · 2 comments

Comments

@Xelt
Copy link

Xelt commented Aug 28, 2024

With the Cached Resolver set with SetExposeRelativePathIdentifierState(True), the drive letter on windows is returned as lower case trough assetPath argument of ResolveAndCache method...

In Houdini U:/path/to/file

@staticmethod
def ResolveAndCache(context, assetPath):
    print(assetPath)

assetPath = u:/path/to/file

@LucaScheller
Copy link
Owner

Thanks for flagging this!

I'll have to check the code if we are on purpose lowercasing it (as far as I remember, no).
Since Windows is case-insensitive, this shouldn't matter for resolving itself (but it probably affects how the pinning file needs to be stored).

@vanridal
Copy link

This is caused by TfNormPath, in the CreateIdentifier() call, only on windows compiled usd does it do this.
Normaliaze any windows style paths that get added to the mappingPairs or cachedPairs to be sure of matching

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants