Skip to content

Ensure path case normalized#130

Merged
davidlatwe merged 1 commit intomottosso:masterfrom
davidlatwe:fix/path-normcase
Nov 18, 2020
Merged

Ensure path case normalized#130
davidlatwe merged 1 commit intomottosso:masterfrom
davidlatwe:fix/path-normcase

Conversation

@davidlatwe
Copy link
Collaborator

Problem

Since Windows's filesystem is case-insensitive, c:/users/david/packages and C:/Users/david/packages both point to same location, but using direct string compare to find out whether these two path is the same or relatived won't work.

And that makes Allzpark fail to identify which package is local (dev) and which is localized, when registered Rez package path and package localize path is not using same letter case.

Fix

Introduce os.path.normcase solved the problem.

@davidlatwe davidlatwe merged commit 69b9493 into mottosso:master Nov 18, 2020
@davidlatwe davidlatwe deleted the fix/path-normcase branch November 18, 2020 10:54
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

Successfully merging this pull request may close these issues.

1 participant