View Single Post
Old 06-11-2018, 08:37 PM   #448
jhowell
Wizard
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 2,411
Karma: 24675885
Join Date: Nov 2011
Location: Florida
Device: Oasis 2, Fire, iPad Air 2, Nexus 7
Quote:
Originally Posted by RbnJrg View Post
Is it possibly for me to edit your plugin to tell it where to find "Kindle Previewer"?
Certainly.

You can unzip the plugin file, edit, and re-zip it. In the "kfxlib" folder the file "generate_kpf.py" has the code that runs the Kindle Previewer. In that file change the line near the beginning of the file:

TEST_PROGRAM_PATH = None

to point to the folder where the program was installed. Something like:

TEST_PROGRAM_PATH = "C:\\Program Files (x86)\\Kindle Previewer 3"

(Note the need for double backslashes for Windows paths.)


Added: I will add a tweak to the next release of the plugin that allows the program location to be configured without having to edit any files.

Last edited by jhowell; 06-12-2018 at 08:54 AM.
jhowell is offline   Reply With Quote