From fae0aef7d4cab73afe01f43c9b905ad83577396b Mon Sep 17 00:00:00 2001 From: Elisabeth Henry Date: Sat, 5 Mar 2016 18:09:25 +0100 Subject: [PATCH] Fix Epub renderer which still used resources.path --- src/lib/epub.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/epub.rs b/src/lib/epub.rs index 38e77fd..af0d185 100644 --- a/src/lib/epub.rs +++ b/src/lib/epub.rs @@ -135,7 +135,7 @@ impl<'a> EpubRenderer<'a> { // Write additional resources if let Ok(list) = self.book.options.get_paths_list("resources.files") { let list = try!(self.get_files(list)); - let data_path = Path::new(try!(self.book.options.get_relative_path("resources.path"))); + let data_path = Path::new(try!(self.book.options.get_relative_path("resources.out_path"))); for path in list{ let mut f = try!(File::open(self.book.root.join(&path)).map_err(|_| Error::FileNotFound(path.clone()))); let mut content = vec!(); @@ -240,7 +240,7 @@ impl<'a> EpubRenderer<'a> { // and additional files too if let Ok(list) = self.book.options.get_paths_list("resources.files") { let list = try!(self.get_files(list)); - let data_path = Path::new(self.book.options.get_relative_path("resources.path").unwrap()); + let data_path = Path::new(self.book.options.get_relative_path("resources.out_path").unwrap()); for path in list { let format = self.get_format(&path); let path = data_path.join(&path);