''' This is a wsgi script for Maki''' import os import sys from yaro import Yaro from spb import makiEngine from spb import mod_wsgiHttpTransaction def maki(req): maki_trans = mod_wsgiHttpTransaction.mod_wsgiHttpTransaction(req) realpath = maki_trans.getRealPath() realpath = makiEngine.normalizeFilepath(realpath) if(os.path.exists(realpath)): makiEngine.handleTransaction(maki_trans) else: maki_trans.sendError(404, "Not found", maki_trans.getEnvironValue("PATH_INFO")) application = Yaro(maki)