Get the environment for a library

Retrieve the environment assigned to a library.