- subprocess.check_call(
- ['ebook-convert', epub.get_filename(), output_file.name,
- '--no-inline-toc',
- '--mobi-file-type=both',
- '--mobi-ignore-margins'], **kwargs
- )
+ subprocess.check_call([converter_path or 'ebook-convert',
+ epub.get_filename(),
+ output_file.name, '--no-inline-toc',
+ '--mobi-file-type=both',
+ '--mobi-ignore-margins'], **kwargs)