mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 08:23:10 +02:00
Original chm.py
This commit is contained in:
parent
7a74dc3410
commit
a60e0ae66a
1 changed files with 2 additions and 5 deletions
|
|
@ -243,9 +243,7 @@ def GetArchiveInfo(self):
|
|||
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 @@ def ResolveObject(self, document):
|
|||
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue