mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix html2lrf_options
This commit is contained in:
parent
8bdcbf3058
commit
227483d9d5
@ -154,6 +154,9 @@ def process_profile(args, options, logger=None):
|
|||||||
options.output = os.path.join(cwd, options.title+('.lrs' if options.lrs else '.lrf'))
|
options.output = os.path.join(cwd, options.title+('.lrs' if options.lrs else '.lrf'))
|
||||||
if not os.path.isabs(options.output):
|
if not os.path.isabs(options.output):
|
||||||
options.output = os.path.join(cwd, options.output)
|
options.output = os.path.join(cwd, options.output)
|
||||||
|
|
||||||
|
option_parser().parse_args(profile.html2lrf_options, options)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
os.chdir(os.path.dirname(htmlfile))
|
os.chdir(os.path.dirname(htmlfile))
|
||||||
create_lrf(os.path.basename(htmlfile), options, logger)
|
create_lrf(os.path.basename(htmlfile), options, logger)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user