Source

pyhook / pyhook / __init__.py

from pyramid.config import Configurator
from pyhook.resources import Root

def main(global_config, **settings):
    """ This function returns a Pyramid WSGI application.
    """
    config = Configurator(root_factory=Root, settings=settings)
    config.scan()
    config.add_static_view('static', 'pyhook:static')
    return config.make_wsgi_app()