06-16-2014, 03:47 PM | #1 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jun 2014
Device: Kindle
|
Loading Plugin in development
Hello !
The question might have been asked a thousand times already, but I can't find the answer to this simple question : I have a Plugin I'm trying to develop for Calibre, the point is easy, but I need to do some try&errors, and I need to reload the plugin often. But it's a bit long, actually, I start Calibre, uninstall the actual version, install the new, and relaunch Calibre in order to have the button in the Toolbar. Is there a better way ? When I try to change the Plugin.zip in %appdata%/calibre/plugins, the button disapear from the toolbar. Thanks you for reading me ! |
06-16-2014, 09:05 PM | #2 |
Grand Sorcerer
Posts: 12,167
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
|
Advert | |
|
06-16-2014, 10:56 PM | #3 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
I use a command file to package the plugin and start calibre.
Code:
del "KoboUtilities.zip" "c:\Program Files\7-Zip\7z.exe" a "KoboUtilities.zip" __init__.py about.txt action.py book.py common_utils.py container.py dialogs.py jobs.py config.py "KoboUtilities_Help.html" plugin-import-name-KoboUtilities.txt run.cmd images/* translations/*.po translations/*.mo mode 165,999 calibre-debug -s calibre-customize -a "KoboUtilities.zip" SET CALIBRE_DEVELOP_FROM=D:\Development\GitHub\calibre\src calibre-debug -g
Setting the environment variable is only needed if you want to run calibre from source. For a plugin, you don't usually need to. |
06-17-2014, 04:50 AM | #4 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jun 2014
Device: Kindle
|
Hello !
Both of your method install the plugin, but I don't see the icon in the toolbar, the plugin is just installed, not placed in the toolbar. No way to go around this ? |
06-17-2014, 09:08 AM | #5 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
You will need to add it to the appropriate toolbar using the preferences. The installation can prompt the user to do this.
|
Advert | |
|
06-17-2014, 11:15 AM | #6 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jun 2014
Device: Kindle
|
When I install the plugin byt the preference, yeah, I'm prompted.
But I need to do this manually, every time, it's quite time consuming for a fast workflow, no ? |
06-17-2014, 06:57 PM | #7 | |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
If the icon is no longer visible after a calibre restart it's probably because there is an error in the updated plugin and it has failed to load correctly during the restart. Restarting calibre in debug mode (calibre-debug -g) would show these errors in the debug log. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Question for plugin development gurus | DiapDealer | Plugins | 2 | 02-04-2012 11:33 PM |
User Interface Plugin Creation & Development Process | ldolse | Development | 0 | 11-04-2011 05:33 AM |
DR800 Plugin development for DR800/DR1000 | yuri_b | iRex Developer's Corner | 0 | 09-18-2010 09:46 AM |
Device plugin development | reader42 | Plugins | 10 | 03-29-2010 12:39 PM |
Calibre plugin development - Newbie problems | minstrel | Plugins | 5 | 04-12-2009 12:44 PM |