From 6708375c374f5b97339ae2be03113fcf437e2f7d Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Tue, 15 Jan 2019 11:00:18 +0100 Subject: [PATCH] Fixed syntax error --- ocr_pyflow | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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