From 2bea7307ea237427a0837a7515c6643834c637e0 Mon Sep 17 00:00:00 2001 From: Zachary Vance Date: Thu, 12 Aug 2021 18:58:03 -0700 Subject: [PATCH] fix --- sm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sm.py b/sm.py index db1cc0c..417225d 100644 --- a/sm.py +++ b/sm.py @@ -1,5 +1,5 @@ #!/usr/local/bin python3 -import logging, tempfile, os, subprocess, sys +import glob, logging, tempfile, os, subprocess, sys import lib SM_URL='https://germinate.za3k.com{path}' @@ -9,7 +9,7 @@ PDF_CONVERSION_TIMEOUT = 30 QUEUE='sm_zip' QUEUE_RESP='sm_zip_resp' -ERROR_FILE="sm.errors" +ERROR_FILE=os.path.expanduser("~/sm.errors") def extract_text(input_path, output_path, debug=False): """Extract text from a .zip file of ~1000 PDFs. Single-threaded.""" -- 2.47.3