-
Notifications
You must be signed in to change notification settings - Fork 322
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
Recursively search for library paths for Viewer and Editor #1293
Recursively search for library paths for Viewer and Editor #1293
Conversation
@kwokcb This might deserve some deeper investigation, as it's not an issue that's been reported on MacOS before. Does this only apply to developer builds, or does it apply to the shipping builds of the viewer in releases? If we can narrow this down further, then we should be able to implement a more targeted solution. |
Hi @jstone-lucasfilm, If anyone sets up MaterialXView at the same level as |
Hi @kwokcb |
For builds which only create one build area, there is no subfolder for the build type (e.g. @ashwinbhat, neither the build area or installs create bundles so it's always possible to move files around and have libraries not found. I guess this would be the best way to handle this, but it's not currently being done. |
@kwokcb I like the idea of generalizing this function further, and one option would be to traverse from the module path to each parent path (e.g. self, parent, grandparent, etc.), returning the first folder that contains the expected data libraries subfolder. This would remove the distinction between "install" and "development" paths in |
Consolidate this into a utility and use for both viewer and editor to avoid duplicate code.
@jstone-lucasfilm , this sounds like simple logic to add. As the Graph Editor also follows the same logic it will also need to be updated as it is also failing when in the same folder as |
Use the interface name `getDefaultDataSearchPath()` for consistency with Python.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me, thanks @kwokcb!
91f5425
into
AcademySoftwareFoundation:main
Fix #1292
libraries
folder from a start path.This fixes when the binary is in the same folder as the
libraries
folder.Note that this does not affect MaterialX test since it already searches in the same folder as the test binary.