mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-25 16:06:03 +01:00
Fix idiotic bug I introduced in 0.4.19 that affected getting news in the GUI
This commit is contained in:
parent
cdab2e5d24
commit
5e19ae43e1
1 changed files with 4 additions and 1 deletions
|
|
@ -142,7 +142,10 @@ def process_profile(args, options, logger=None):
|
|||
|
||||
htmlfile, tdir = fetch_website(options, logger)
|
||||
cwd = os.getcwdu()
|
||||
options.output = os.path.join(cwd, options.title+('.lrs' if options.lrs else '.lrf'))
|
||||
if not options.output:
|
||||
options.output = os.path.join(cwd, options.title+('.lrs' if options.lrs else '.lrf'))
|
||||
if not os.path.isabs(options.output):
|
||||
options.output = os.path.join(cwd, options.output)
|
||||
try:
|
||||
os.chdir(os.path.dirname(htmlfile))
|
||||
create_lrf(os.path.basename(htmlfile), options, logger)
|
||||
|
|
|
|||
Loading…
Reference in a new issue