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.
|