def load_environment(global_conf, app_conf):
config = PylonsConfig()<EOL>root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))<EOL>paths = dict(root=root,<EOL>controllers=os.path.join(root, '<STR_LIT>'),<EOL>static_files=os.path.join(root, '<STR_LIT>'),<EOL>templates=[os.path.join(root, '<STR_LIT>')])<EOL>config.init_app(global_conf, app_conf, package='<STR_LIT>', paths=paths)<EOL>config['<STR_LIT>'] = make_map(config)<EOL>config['<STR_LIT>'] = app_globals.Globals(config)<EOL>config['<STR_LIT>'] = nipapwww.lib.helpers<EOL>import pylons<EOL>pylons.cache._push_object(config['<STR_LIT>'].cache)<EOL>jinja2_env = Environment(autoescape=True,<EOL>extensions=['<STR_LIT>'],<EOL>loader=FileSystemLoader(paths['<STR_LIT>']))<EOL>config['<STR_LIT>'].jinja2_env = jinja2_env<EOL>config['<STR_LIT>'] = False<EOL>cfg = NipapConfig(config['<STR_LIT>'], <EOL>{ '<STR_LIT>': '<STR_LIT>' })<EOL>pynipap.xmlrpc_uri = cfg.get('<STR_LIT>', '<STR_LIT>')<EOL>return config<EOL>
Configure the Pylons environment via the ``pylons.config``
    object