Commit 945be778 authored by Aram Verstegen's avatar Aram Verstegen
Browse files

Use WORKING_DIR constant for imagestack basenames

parent 48df9689
...@@ -196,7 +196,7 @@ class EpubGenerator(object): ...@@ -196,7 +196,7 @@ class EpubGenerator(object):
if not self.scandata_xml_file_path: if not self.scandata_xml_file_path:
self.scandata_xml_file_path = self.hocr_xml_file_path.replace('_hocr.html', '_scandata.xml') self.scandata_xml_file_path = self.hocr_xml_file_path.replace('_hocr.html', '_scandata.xml')
self.img_stack = ImageStack(self.image_stack_zip_file_path, "/tmp/test_img") self.img_stack = ImageStack(self.image_stack_zip_file_path, os.path.join(WORKING_DIR, "test_img"))
self.epub_zip_file_path = self.hocr_xml_file_path.replace('_hocr.html', '_ebook.epub') self.epub_zip_file_path = self.hocr_xml_file_path.replace('_hocr.html', '_ebook.epub')
try: try:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment