From 61b3ccb57c2d59d07a0f6696dc33ec8031c6eeaf Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Mon, 4 Jan 2016 13:23:47 -0800 Subject: [PATCH] Place ruffus database in temporary folder Because we don't really use ruffus checkpoint feature, putting the database in a permanent location does not help anything, but does cause large database files and problems if the .ruffus_history.sqlite wanted to be in a writable location. --- ocrmypdf/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ocrmypdf/main.py b/ocrmypdf/main.py index cf9ba867..678cd4ee 100755 --- a/ocrmypdf/main.py +++ b/ocrmypdf/main.py @@ -790,6 +790,7 @@ def run_pipeline(): if not options.jobs or options.jobs == 1: options.jobs = available_cpu_count() try: + options.history_file = os.path.join(work_folder, 'ruffus_history.sqlite') cmdline.run(options) except ruffus_exceptions.RethrownJobError as e: if options.verbose: