def create_ini(self, board, project_dir='<STR_LIT>', sayyes=False):
project_dir = util.check_dir(project_dir)<EOL>ini_path = util.safe_join(project_dir, PROJECT_FILENAME)<EOL>boards = Resources().boards<EOL>if board not in boards.keys():<EOL><INDENT>click.secho(<EOL>'<STR_LIT>'.format(board),<EOL>fg='<STR_LIT>')<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>if isfile(ini_path):<EOL><INDENT>if sayyes:<EOL><INDENT>self._create_ini_file(board, ini_path, PROJECT_FILENAME)<EOL><DEDENT>else:<EOL><INDENT>click.secho(<EOL>'<STR_LIT>'.format(PROJECT_FILENAME),<EOL>fg='<STR_LIT>')<EOL>if click.confirm('<STR_LIT>'):<EOL><INDENT>self._create_ini_file(board, ini_path, PROJECT_FILENAME)<EOL><DEDENT>else:<EOL><INDENT>click.secho('<STR_LIT>', fg='<STR_LIT>')<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>self._create_ini_file(board, ini_path, PROJECT_FILENAME)<EOL><DEDENT>
Creates a new apio project file