libraryLoaderEnvironment

lsst.sconsUtils.utils.libraryLoaderEnvironment()

Calculate library loader path environment string to be prepended to external commands.

Returns:
loader : str

If we have an macOS with System Integrity Protection enabled or similar we need to pass through both DYLD_LIBRARY_PATH and LSST_LIBRARY_PATH to the external command: DYLD_LIBRARY_PATH for Python code LSST_LIBRARY_PATH for shell scripts

If both are already defined then pass them each through. If only one is defined, then set both to the defined env variable If neither is defined then pass through nothing.