def main(db):
conf = {
'/': {
'tools.staticdir.on': True,
'tools.staticdir.dir': os.path.join(
os.path.abspath(os.path.dirname(os.path.realpath(__file__))),
'web'
)
},
}
cherrypy.quickstart(Server(db), '/', conf)