Fixed variable reference

This commit is contained in:
Patrick Jentsch 2019-01-15 11:06:50 +01:00
parent f578d89ccc
commit 58f6aeebb9

View File

@ -201,7 +201,7 @@ class OCRWorkflow(WorkflowRunner):
###
# Task "cleanup_job": remove temporary files
# Dependencies: hocr_to_teip5_job + move_hocr_jobs + pdf_merge_jobs + pdf_to_txt_jobs
# Dependencies: hocr_to_teip5_jobs + move_hocr_jobs + pdf_merge_jobs + pdf_to_txt_jobs
###
cleanup_jobs = []
cleanup_job_counter = 0
@ -211,7 +211,7 @@ class OCRWorkflow(WorkflowRunner):
cmd = 'rm -r "%s"' % (
os.path.join(job["output_dir"], "tmp")
)
cleanup_jobs.append(self.addTask(label="cleanup_job_-_%i" % (cleanup_job_counter), command=cmd, dependencies=hocr_to_teip5_job + move_hocr_jobs + pdf_merge_jobs + pdf_to_txt_jobs))
cleanup_jobs.append(self.addTask(label="cleanup_job_-_%i" % (cleanup_job_counter), command=cmd, dependencies=hocr_to_teip5_jobs + move_hocr_jobs + pdf_merge_jobs + pdf_to_txt_jobs))
def analyze_jobs(inputDir, outputDir, level=1):