from ott.utils.svr.pyramid.app_config import AppConfig

import views

import logging
log = logging.getLogger(__file__)


def main(global_config, **config):
    """
    this function is the main entry point for pserve / Pyramid
    it returns a Pyramid WSGI application
    see setup.py entry points + config/*.ini [app:main] ala pserve (e.g., bin/pserve config/development.ini)
    """
    app = AppConfig(**config)
    app.config_include_scan(views)
    return app.make_wsgi_app()

from ott.utils.svr.pyramid.app_config import AppConfig

import logging
log = logging.getLogger(__file__)

def main(global_config, **config):
    """
    this function is the main entry point for pserve / Pyramid
    it returns a Pyramid WSGI application
    see setup.py entry points + config/*.ini [app:main] ala pserve (e.g., bin/pserve config/development.ini)
    """
    import views
    app = AppConfig(**config)
    app.config_include_scan(views)
    return app.make_wsgi_app()

clean up