def __init__(self, application, request, **kwargs):

        #TODO: This is really hacky, must be a more elegant wy to build up the path name
        thisModule = __import__(self.__module__)
        mods = self.__module__.split('.')
        thisAppName = mods[mods.index('Apps') +1]
        template_path = 'Apps/%s/templates/' % (thisAppName)

        self.module_template_path = template_path
        self.application = application


        RequestHandler.__init__(self, application, request,**kwargs)
dataset/ETHPy150Open lonelycode/Mojo/Mojo/RequestHandlers/MojoHandler.py/MojoRequestHandler.__init__/original