diff --git a/ocr_pyflow b/ocr_pyflow index 61c50b7..725d8ee 100755 --- a/ocr_pyflow +++ b/ocr_pyflow @@ -227,8 +227,8 @@ def analyze_jobs(inputDir, outputDir, level=1): os.path.join(outputDir, file), level + 1 ) - elif file.endswith(".pdf") or file.endswith(".tif") or file.endswith(".tiff"): - jobs.append({"basename": os.path.basename(file), "output_dir": os.path.join(outputDir, file.rsplit(".", 1)[0]), "path": os.path.join(inputDir, file)}) + elif file.endswith(".pdf") or file.endswith(".tif") or file.endswith(".tiff"): + jobs.append({"basename": os.path.basename(file), "output_dir": os.path.join(outputDir, file.rsplit(".", 1)[0]), "path": os.path.join(inputDir, file)}) return jobs