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
|