ynput / ayon-usd

USD Addon for AYON.
3 stars 1 forks source link

fixing LD_LIBRARY_PATH startup error if LD_LIBRARY_PATH has not been set before. #8

Closed Lyon-Rosenblatt-Ynput closed 3 weeks ago

Lyon-Rosenblatt-Ynput commented 4 weeks ago

This PR intends to fix an issue that occurs if the LD_LIBRARY_PATH is not set before the pre-init hock gets triggered.

ynbot commented 4 weeks ago

Task linked: AY-5681 LD_LIBRARY_PATH startup error on Linux

Lyon-Rosenblatt-Ynput commented 4 weeks ago

@iLLiCiTiT this is an error I'm getting when running your change. AttributeERROR: 'ApplicationLaunchContext' object has no attribute 'get'

fix needed was to change line 140 to existing_ld_path = self.launch_context.env.get("LD_LIBRARY_PATH")

Lyon-Rosenblatt-Ynput commented 3 weeks ago

closing in favour of https://github.com/ynput/ayon-usd/pull/5