def __init__(self, project_name, stats, output_dir):
logger.debug('<STR_LIT>'<EOL>'<STR_LIT>', project_name, output_dir)<EOL>self.project_name = project_name<EOL>self._stats = stats<EOL>self.output_dir = os.path.abspath(os.path.expanduser(output_dir))<EOL>if os.path.exists(self.output_dir):<EOL><INDENT>logger.debug('<STR_LIT>',<EOL>self.output_dir)<EOL>shutil.rmtree(self.output_dir)<EOL><DEDENT>logger.debug('<STR_LIT>',<EOL>self.output_dir)<EOL>os.makedirs(self.output_dir)<EOL>self._graphs = {}<EOL>self._badges = {}<EOL>
Initialize an OutputGenerator for one project.

:param project_name: name of the project to generate output for
:type project_name: str
:param stats: ProjectStats instance for the project
:type stats: :py:class:`~.ProjectStats`hey
:param output_dir: path to write project output to
:type output_dir: str