View Single Post
Old 01-03-2025, 06:26 PM   #569
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,817
Karma: 6000000
Join Date: Nov 2009
Device: many
If you want full control check out bookcontainer.py for the copy epub to folder routine. You specify the folder full path and can get actual file access to a full copy of all the epub's files.

If you never directly write to it, you can cheat and do something like:

bk._w.ebook_root

to access the actual internal-to-Sigil, ebook root path but if you write directly to there without using the proper plugin interface you will crash Sigil.

Sigil plugins use a "copy and modify on write approach" built into the bookcontainer.py and wrapper.py routines to protect Sigil.

So if a file is modified remember to only write its new contents using the proper plugin interface so that it is properly registered as being modified and stored away.

Last edited by KevinH; 01-03-2025 at 07:34 PM.
KevinH is offline   Reply With Quote