10-07-2021, 10:08 PM | #1 |
Connoisseur
Posts: 95
Karma: 10
Join Date: Sep 2020
Device: kindle paperwhite3/Oasis2
|
Get the path of debug-pipeline directory in recipe
Hi,
The command "ebook-convert recipe $tmp_dir_name/ebook.epub -d $tmp_dir_name" is run by me to fetch ebook. I would like to write some data into debug-pipeline directory in parse_index() of the recipe. Do I have a chance to get the path of debug-pipeline directory in parse_index()? Thanks, Fei. |
10-07-2021, 10:45 PM | #2 |
creator of calibre
Posts: 43,843
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
You can get the path its will be opts.debug_pipeline but recipes are input plugins, so they are run before the debug pipeline is created. You will need to define the postprocess_book() method in your recipe which is run after the parsed stage of the debug pipeline
|
Advert | |
|
10-08-2021, 09:47 PM | #3 | |
Connoisseur
Posts: 95
Karma: 10
Join Date: Sep 2020
Device: kindle paperwhite3/Oasis2
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
New Richard Sharpe book in the pipeline | issybird | Reading Recommendations | 0 | 10-15-2020 07:18 AM |
Ctrl-Shft-R Debug vs calibre-debug -g | JimmXinu | Development | 3 | 11-20-2014 09:57 AM |
ebook-convert: access current working directory inside recipe | jens32 | Recipes | 3 | 06-03-2011 10:57 AM |
Adding pynliner to the conversion pipeline for some functions? | ldolse | Development | 7 | 04-11-2011 01:25 PM |