Fix #7058 (.CHM conversion fails)

This commit is contained in:
Kovid Goyal 2010-10-03 21:17:03 -06:00
parent c4e3bdd4cc
commit 61b32834f6

View File

@ -151,7 +151,8 @@ class CHMReader(CHMFile):
continue
raise
self._extracted = True
files = os.listdir(output_dir)
files = [x for x in os.listdir(output_dir) if
os.path.isfile(os.path.join(output_dir, x))]
if self.hhc_path not in files:
for f in files:
if f.lower() == self.hhc_path.lower():