|
|
#1 |
|
Zealot
![]() Posts: 108
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. |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,616
Karma: 28549044
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 | |
|
|
|
|
#3 | |
|
Zealot
![]() Posts: 108
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 08:18 AM |
| Ctrl-Shft-R Debug vs calibre-debug -g | JimmXinu | Development | 3 | 11-20-2014 10:57 AM |
| ebook-convert: access current working directory inside recipe | jens32 | Recipes | 3 | 06-03-2011 11:57 AM |
| Adding pynliner to the conversion pipeline for some functions? | ldolse | Development | 7 | 04-11-2011 02:25 PM |