@silentguy
from calibre.utils.config import config_dir
This is the user's local Calibre directory. You will then need to add the check for the resources\images subfolders to append to that path and create if not existing. Then as Kovid says I(xxx) will work (after Calibre is restarted).
This approach is used by my Search The Internet and Open With plugins, both of which store downloaded images in that directory. The Generate Cover does something similar too.
|