def generate(project):
    _entries = [('.project', 'eclipse.project.template'), ('.cproject', 'eclipse.cproject.template')]
    for entry in _entries:
        outfilepath = os.path.join(project.outdirpath, entry[0])
        infilepath = os.path.join(os.path.dirname(__file__), entry[1])
        logging.info("%s: generating '%s'", project.name, outfilepath)
        template.expand(infilepath, outfilepath, _TemplateHandler(project))
def generate(project):
    _entries = [('.project', 'eclipse.project.template'), ('.cproject', 'eclipse.cproject.template')]
    for entry in _entries:
        outfilepath = os.path.join(project.outdirpath, entry[0])
        infilepath = os.path.join(os.path.dirname(__file__), entry[1])
        logging.info("%s: generating '%s'", project.name, outfilepath)
        template.expand(infilepath, outfilepath, _TemplateHandler(project))