mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04: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
@ -142,7 +142,10 @@ def process_profile(args, options, logger=None):
|
|||||||
|
|
||||||
htmlfile, tdir = fetch_website(options, logger)
|
htmlfile, tdir = fetch_website(options, logger)
|
||||||
cwd = os.getcwdu()
|
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:
|
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