@check_current_directory<EOL><INDENT>def check(self):<DEDENT>
config = self.load_config()<EOL>if not check_dependency_epubcheck():<EOL><INDENT>sys.exit(error('<STR_LIT>'))<EOL><DEDENT>epub_file = "<STR_LIT>" % config['<STR_LIT>']<EOL>epub_path = join(CWD, '<STR_LIT>', epub_file)<EOL>print(success("<STR_LIT>" % epub_file))<EOL>epubcheck = '<STR_LIT>' % epub_path<EOL>epubcheck = shell(epubcheck.encode())<EOL>for line in epubcheck.errors():<EOL><INDENT>print(error(line))<EOL><DEDENT>for line in epubcheck.output():<EOL><INDENT>print(line)<EOL><DEDENT>
Checks EPUB integrity