Load an environment from a YAML file.