mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Original chm.py
This commit is contained in:
parent
7a74dc3410
commit
a60e0ae66a
@ -243,9 +243,7 @@ class CHMFile:
|
|||||||
from LoadCHM.
|
from LoadCHM.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
#extra.is_searchable crashed...
|
self.searchable = extra.is_searchable (self.file)
|
||||||
#self.searchable = extra.is_searchable (self.file)
|
|
||||||
self.searchable = False
|
|
||||||
self.lcid = None
|
self.lcid = None
|
||||||
|
|
||||||
result, ui = chmlib.chm_resolve_object(self.file, '/#SYSTEM')
|
result, ui = chmlib.chm_resolve_object(self.file, '/#SYSTEM')
|
||||||
@ -369,8 +367,7 @@ class CHMFile:
|
|||||||
The UnitInfo is used to retrieve the document contents
|
The UnitInfo is used to retrieve the document contents
|
||||||
'''
|
'''
|
||||||
if self.file:
|
if self.file:
|
||||||
#path = os.path.abspath(document)
|
path = os.path.abspath(document)
|
||||||
path = document
|
|
||||||
return chmlib.chm_resolve_object(self.file, path)
|
return chmlib.chm_resolve_object(self.file, path)
|
||||||
else:
|
else:
|
||||||
return (1, None)
|
return (1, None)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user