Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 03:51 AM   #1
jsky
Junior Member
jsky began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2025
Device: kindle
Could Calibre plugins support folders, not just ZIP files?

Calibre uses ZIP format for plugin management, which is not very convenient for debugging. Currently, I'm using
Code:
 from calibre.rpdb import set_trace 
set_trace()
in the plugin code to debug. However, each time I need to debug, I have to re-zip and reinstall the plugin.

On macOS, I found the plugin location at:

/Users/***/Library/Preferences/calibre/plugins
I'm wondering if it's possible to make Calibre support loading plugins directly from a folder. That way, I could edit the source code directly in that folder and debug more easily, without having to zip and reinstall the plugin each time.
jsky is offline   Reply With Quote
Old Yesterday, 05:39 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,359
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Just run

calibre-customize -b .

this will zip up and update the plugin for you
kovidgoyal is offline   Reply With Quote
Advert
Old Yesterday, 08:48 AM   #3
jsky
Junior Member
jsky began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2025
Device: kindle
It works
jsky is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Zip files defaulting to Calibre? Plinuckment Calibre 3 10-26-2022 01:32 AM
Calibre is changing the file type of my zip files qwertyuio Library Management 3 12-30-2020 07:06 PM
Adding .zip files to calibre on Windows 10 lonesinger Calibre 6 10-29-2016 11:05 AM
Weird thing with Calibre and ZIP files. GoldThreader Calibre 6 04-13-2012 09:58 PM
ZipImportError: not a Zip file (most plugins) vladacr Plugins 30 04-02-2011 09:35 AM


All times are GMT -4. The time now is 04:59 PM.


MobileRead.com is a privately owned, operated and funded community.