Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Wrong handling of slashes when loading on Mac #324

Merged

Conversation

iLLiCiTiT
Copy link
Member

Changes

  • all formatted paths in get_representation_path are forced to replace \ with / on all systems except windows
    • this is because os.path.normpath may not replace it automatically and MacOS can't handle it automatically
  • don't use hierarchy key from asset document but use joined parents key

Resolves: ynput/OpenPype#1411

@iLLiCiTiT iLLiCiTiT self-assigned this Apr 30, 2021
@iLLiCiTiT iLLiCiTiT requested a review from mkolar April 30, 2021 12:42
@iLLiCiTiT iLLiCiTiT changed the title Bugfix/1411 wrong handling of slashes when loading on mac Wrong handling of slashes when loading on ma Apr 30, 2021
@iLLiCiTiT iLLiCiTiT changed the title Wrong handling of slashes when loading on ma Wrong handling of slashes when loading on Mac Apr 30, 2021
@iLLiCiTiT iLLiCiTiT added the bug Something isn't working label Apr 30, 2021
@mkolar mkolar merged commit cfd4191 into develop May 4, 2021
@mkolar mkolar deleted the bugfix/1411-wrong-handling-of-slashes-when-loading-on-mac branch May 4, 2021 14:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants