def app_factory(global_config, **local_conf):
    """ wsgi app factory for Paste """
    setup_plugins()
    setup_noderenderers()
    return app
def main():
    from google.appengine.ext.webapp.util import run_wsgi_app
    setup_noderenderers()
    run_wsgi_app(app)
app.register_blueprint(apps.blockdiag_main.app)
app.register_blueprint(apps.blockdiag_main.app, url_prefix='/blockdiag')

import apps.seqdiag_main
app.register_blueprint(apps.seqdiag_main.app, url_prefix='/seqdiag')

import apps.actdiag_main
app.register_blueprint(apps.actdiag_main.app, url_prefix='/actdiag')

import apps.nwdiag_main
app.register_blueprint(apps.nwdiag_main.app, url_prefix='/nwdiag')

import apps.rackdiag_main
app.register_blueprint(apps.rackdiag_main.app, url_prefix='/rackdiag')

import apps.packetdiag_main
app.register_blueprint(apps.packetdiag_main.app, url_prefix='/packetdiag')


def app_factory(global_config, **local_conf):
    """ wsgi app factory for Paste """
    setup_plugins()
    setup_noderenderers()
    return app


# initialize
setup_imagedraw()
setup_plugins()
setup_noderenderers()
def app_factory(global_config, **local_conf):
    """ wsgi app factory for Paste """
    setup_noderenderers()
    return app