View Single Post
Old 06-11-2018, 07:37 PM   #448
jhowell
Grand Sorcerer
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: 6,496
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
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 07:54 AM.
jhowell is offline   Reply With Quote