Modified chm.py

This commit is contained in:
James Ralston 2010-02-08 20:35:28 -08:00
parent a60e0ae66a
commit 981a79ac34

View File

@ -243,7 +243,9 @@ class CHMFile:
from LoadCHM.
'''
self.searchable = extra.is_searchable (self.file)
#extra.is_searchable crashed...
#self.searchable = extra.is_searchable (self.file)
self.searchable = False
self.lcid = None
result, ui = chmlib.chm_resolve_object(self.file, '/#SYSTEM')
@ -367,7 +369,8 @@ class CHMFile:
The UnitInfo is used to retrieve the document contents
'''
if self.file:
path = os.path.abspath(document)
#path = os.path.abspath(document)
path = document
return chmlib.chm_resolve_object(self.file, path)
else:
return (1, None)