Fix #7288 (calibre cannot work correctly if the temporary path contain non-ASCII characters)

This commit is contained in:
Kovid Goyal 2010-10-28 09:00:50 -06:00
parent 8e5a050969
commit d7f2a18e28

View File

@ -583,7 +583,7 @@ class BasicNewsRecipe(Recipe):
self.title = unicode(self.title, 'utf-8', 'replace') self.title = unicode(self.title, 'utf-8', 'replace')
self.debug = options.verbose > 1 self.debug = options.verbose > 1
self.output_dir = os.getcwd() self.output_dir = os.path.abspath(os.getcwdu())
self.verbose = options.verbose self.verbose = options.verbose
self.test = options.test self.test = options.test
self.username = options.username self.username = options.username
@ -594,7 +594,6 @@ class BasicNewsRecipe(Recipe):
if self.touchscreen: if self.touchscreen:
self.template_css += self.output_profile.touchscreen_news_css self.template_css += self.output_profile.touchscreen_news_css
self.output_dir = os.path.abspath(self.output_dir)
if options.test: if options.test:
self.max_articles_per_feed = 2 self.max_articles_per_feed = 2
self.simultaneous_downloads = min(4, self.simultaneous_downloads) self.simultaneous_downloads = min(4, self.simultaneous_downloads)