def renderTemplate(self, filePath):
        self.logIt("Rendering template %s" % filePath)
        fn = os.path.split(filePath)[-1]
        f = open(os.path.join(self.templateFolder, fn))
        template_text = f.read()
        f.close()
        newFn = open(os.path.join(self.outputFolder, fn), 'w+')
        newFn.write(template_text % self.__dict__)
        newFn.close()
dataset/ETHPy150Open GluuFederation/community-edition-setup/setup.py/Setup.renderTemplate/original