def monolith(self, parts, module): monolith = routing.resourcepath('monolith/%s.%s' % (module, self.extension)) with open(monolith, 'w') as outfile: for part in parts: if self.type in part.compiled: outfile.write(part.compiled[self.type]) outfile.write('\n')
def createApp(serveStatic, megamodules=None): scanner.scanRoutes(megamodules) app = Application() if serveStatic: app.wsgi_app = SharedDataMiddleware(app.wsgi_app, { '/resource': routing.resourcepath("") }) return app