Fix idiotic bug I introduced in 0.4.19 that affected getting news in the GUI

This commit is contained in:
Kovid Goyal 2007-11-12 04:13:44 +00:00
parent cdab2e5d24
commit 5e19ae43e1

View File

@ -142,7 +142,10 @@ def process_profile(args, options, logger=None):
htmlfile, tdir = fetch_website(options, logger)
cwd = os.getcwdu()
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)