For a complex config file containing multiple Pyramidapplications, this function will setup the environment under the contextof the last-loaded Pyramid application. You may load a specificapplication yourself by using the lower-level functionspyramid.paster.get_app() and pyramid.scripting.prepare() inconjunction with pyramid.config.global_registries.