Skip to content

Commit

Permalink
Update client/ayon_usd/hooks/pre_resolver_init.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jakub Trllo <[email protected]>
  • Loading branch information
Lypsolon and iLLiCiTiT authored Jun 3, 2024
1 parent ddbc1df commit 1152afe
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions client/ayon_usd/hooks/pre_resolver_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,10 @@ def execute(self):
self.launch_context.env["PATH"] = \
os.pathsep + os.pathsep.join(ld_path)
elif ld_path:
if "LD_LIBRARY_PATH" in os.environ:
self.launch_context.env["LD_LIBRARY_PATH"] += \
os.pathsep + os.pathsep.join(ld_path)
else:
self.launch_context.env["LD_LIBRARY_PATH"] = \
os.pathsep + os.pathsep.join(ld_path)

existing_ld_path = self.launch_context.get("LD_LIBRARY_PATH")
if existing_ld_path:
ld_path.insert(0, existing_ld_path)
self.launch_context.env["LD_LIBRARY_PATH"] = os.pathsep.join(ld_path)

# TODO: move debug options to AYON settings
self.launch_context.env["TF_DEBUG"] = "1"
Expand Down

0 comments on commit 1152afe

Please sign in to comment.