Hi.
I need to be able to tell a plugin (a thin veneer over a much larger library written by others) where it can find some dynamic libraries installed separately. Through a lot of digging, I’ve found the LSEnvironment variable, where one can do basically
plist = { LSEnvironment = { DYLD\_LIBRARY\_PATH = "$DYLD\_LIBRARY\_PATH:/usr/local/lib:/usr/local/cuda/lib:/usr/local/cuda/nvvm/lib" } }
and for most keys the corresponding value will, indeed, be returned from later calls to os.getenv(“MY_ENV_VAR”).
However, in the case of DYLD_LIBRARY_PATH , Corona fails to load, so I figure its own value is getting stomped on. I’m thus led to assume that, outside of Bash scripts, the “$DYLD_LIBRARY_PATH:” part (also tried with curly braces) doesn’t actually resolve to the current value under that key.
Am I missing anything here? If not, what might be the least intrusive alternative? The vast majority of what I’ve dug up explains how to register variables in ~/.bashrc , but ostensibly that’s irrelevant to GUI apps. Would ~/.MacOSX/environment.plist be the way to go?
I’m very green about OS X generally. Many of the sources I’ve been reading also seem to hint at abrupt divides among certain OS versions as far as how to do this sort of thing (Launch Control, etc.), and I’ve not had time to sift out what matters.
Thanks for any help!