Skip to content

Commit

Permalink
fix find stdlib in flat pxr lib
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardFrangenberg committed Aug 2, 2023
1 parent e0d959f commit 5348bf2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/QuiltiX/mx_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ def recurse_find_mx_stdlib_in_dir(root_dir):
return [Path(Path(sys.executable).parent.parent, "houdini", "materialx", "libraries").as_posix()]

import pxr # type: ignore
usd_root = os.path.dirname(pxr.__file__) # flat pxr module
if pxr_stdlib := recurse_find_mx_stdlib_in_dir(usd_root):
return [pxr_stdlib]

usd_root = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(pxr.__file__))))
if pxr_stdlib := recurse_find_mx_stdlib_in_dir(usd_root):
return [pxr_stdlib]
Expand Down

0 comments on commit 5348bf2

Please sign in to comment.