View Single Post
Old 10-31-2014, 05:27 PM   #27
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,889
Karma: 6120478
Join Date: Nov 2009
Device: many
Hi,
It will work the way you have it now but it will stop working in the future. The only reason it works now is that I recently changed the code to use a dictionary to map both manifest ids and book hrefs to filepaths. This change allowed bk.writeotherfile and bk.readotherfile to work by accident if you pass in a valid manifest id in place of a href from the book root. The old code did not use this. The upcoming next version code will change this back to the old way of doing things.

So simply just replace your use of bk.writeotherfile with bk.writefile and bk.readotherfile with bk.readfile and then your plugin should continue to work as expected even after the next release of Sigil.

Thanks,

KevinH
KevinH is offline   Reply With Quote