

def serve(args):
    from ..cmd import read_settings
    path = '/'
    settings = read_settings(args)
    final_renderer = InlineFormRenderer(settings)
    edit_settings = settings._replace(images=(path + 'img'))
    edit_renderer = InlineFormRenderer(edit_settings, verify_image_url=final_renderer.images)
    cherrypy.config.update({
        'server.socket_port': (args.port or 8080),
    })
    cherrypy.quickstart(Server(settings, edit_renderer=edit_renderer, final_renderer=final_renderer), path)

dataset/ETHPy150Open KeepSafe/ks-email-parser/email_parser/gui/gui.py serve/VarMisuse@58/79 `settings`->`final_renderer`