View Single Post
Old 10-24-2020, 02:14 PM   #4732
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,034
Karma: 4604637
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by GadGray View Post
When I try to test the plugin by installing it on calibre, it keeps saying I need to restart calibre to finish the install (Ive done it several times). the button also doesn't appear any more. All I edited is the adapter folder.
Run Calibre in debug mode--you probably have a syntax error or something that prevents the plugin from loading.

Since I'm on Win10 (and because I still remember MS-DOS), I use a batch file to run calibre for plugin testing. I tell a lie--this is how I run calibre all the time.

Code:
set PYTHONIOENCODING=UTF-8

python makeplugin.py

set CALIBRE_LIBRARY_DIRECTORY=
set CALIBRE_CONFIG_DIRECTORY=
set CALIBRE_DEVELOP_FROM=
set CALIBRE_OVERRIDE_LANG=
set CALIBRE_USE_DARK_PALETTE=

"c:\Program Files\Calibre2\calibre-customize" -a FanFicFare.zip
"c:\Program Files\Calibre2\calibre-debug" -g
The different environment variables (CALIBRE_*) can be set for testing calibre source, different language translations, dark mode, etc.

Note that makeplugin.py isn't in the distributed plugin zip, but is in the GitHub repo. There are any number of tutorials out there for getting started using GitHub. It's highly recommended if you want to start contributing code.
JimmXinu is offline   Reply With Quote