Quote:
Originally Posted by GadGray
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.