<s> """<STR_LIT>""" <EOL> import os <EOL> from mako . lookup import TemplateLookup <EOL> from pylons import config <EOL> from pylons . error import handle_mako_error <EOL> import pylonstest . lib . app_globals as app_globals <EOL> import pylonstest . lib . helpers <EOL> from pylonstest . config . routing import make_map <EOL> def load_environment ( global_conf , app_conf ) : <EOL> """<STR_LIT>""" <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 ( ) <EOL> config [ '<STR_LIT>' ] = app_globals . Globals ( ) <EOL> config [ '<STR_LIT>' ] = pylonstest . lib . helpers <EOL> config [ '<STR_LIT>' ] . mako_lookup = TemplateLookup ( <EOL> directories = paths [ '<STR_LIT>' ] , <EOL> error_handler = handle_mako_error , <EOL> module_directory = os . path . join ( app_conf [ '<STR_LIT>' ] , '<STR_LIT>' ) , <EOL> input_encoding = '<STR_LIT:utf-8>' , default_filters = [ '<STR_LIT>' ] , <EOL> imports = [ '<STR_LIT>' ] ) </s>
