From a60e0ae66ad9670350606e49a3c1c098d96886e2 Mon Sep 17 00:00:00 2001 From: James Ralston <> Date: Mon, 8 Feb 2010 20:28:36 -0800 Subject: [PATCH] Original chm.py --- src/calibre/ebooks/chm/chm/chm.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/calibre/ebooks/chm/chm/chm.py b/src/calibre/ebooks/chm/chm/chm.py index bed89af944..4a55c6d7de 100644 --- a/src/calibre/ebooks/chm/chm/chm.py +++ b/src/calibre/ebooks/chm/chm/chm.py @@ -243,9 +243,7 @@ class CHMFile: from LoadCHM. ''' - #extra.is_searchable crashed... - #self.searchable = extra.is_searchable (self.file) - self.searchable = False + self.searchable = extra.is_searchable (self.file) self.lcid = None result, ui = chmlib.chm_resolve_object(self.file, '/#SYSTEM') @@ -369,8 +367,7 @@ class CHMFile: The UnitInfo is used to retrieve the document contents ''' if self.file: - #path = os.path.abspath(document) - path = document + path = os.path.abspath(document) return chmlib.chm_resolve_object(self.file, path) else: return (1, None)