diff options
Diffstat (limited to 'lib/sisu/v3/epub.rb')
-rw-r--r-- | lib/sisu/v3/epub.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/sisu/v3/epub.rb b/lib/sisu/v3/epub.rb index c39b7800..b76beb17 100644 --- a/lib/sisu/v3/epub.rb +++ b/lib/sisu/v3/epub.rb @@ -93,9 +93,9 @@ module SiSU_EPUB : SiSU_Screen::Ansi.new(@opt.cmd,'EPUB',tool).green_title_hi SiSU_Screen::Ansi.new(@opt.cmd,@opt.fns,"#{@md.file.output_path.epub}/#{@md.file.base_filename.epub}").flow if @opt.cmd =~/[MV]/ end - @env.path.epub_bld #(@md) - @env.path.epub_cp_images(@md) - dir_epub=@env.path.epub + @env.processing_path.epub_bld #(@md) + @env.processing_path.epub_cp_images(@md) + dir_epub=@env.processing_path.epub SiSU_Env::Info_skin.new(@md).select data=nil SiSU_Env::SiSU_file.new(@md).mkdir.output.epub @@ -110,7 +110,7 @@ module SiSU_EPUB rescue; SiSU_Errors::Info_error.new($!,$@,@opt.cmd,@opt.fns).error ensure unless @opt.cmd =~/[MV]/ #check maintenance flag - texfiles=Dir["#{@env.path.tune}/#{@opt.fns}*"] + texfiles=Dir["#{@env.processing_path.tune}/#{@opt.fns}*"] texfiles.each do |f| if FileTest.file?(f) File.unlink(f) @@ -629,9 +629,9 @@ module SiSU_EPUB def images img_pth=@md.env.path.image_source_include @md.ec[:image].each do |x| - if FileTest.directory?("#{@md.env.path.epub}/OPS/image") \ + if FileTest.directory?("#{@md.env.processing_path.epub}/OPS/image") \ and FileTest.file?("#{img_pth}/#{x}") - cp("#{img_pth}/#{x}","#{@md.env.path.epub}/OPS/image") + cp("#{img_pth}/#{x}","#{@md.env.processing_path.epub}/OPS/image") end end end @@ -641,13 +641,13 @@ module SiSU_EPUB def output_zip mkdir_p(@md.file.output_path.epub) unless FileTest.directory?(@md.file.output_path.epub) system(" - cd #{@md.env.path.epub} + cd #{@md.env.processing_path.epub} zip -qXr9D #{@epub_doc} * mv #{@epub_doc} #{@md.file.place_file.epub} cd #{Dir.pwd} ") unless @md.cmd.inspect =~/M/ - system("rm -r #{@md.env.path.epub}") + system("rm -r #{@md.env.processing_path.epub}") end end def segtoc |