From: Zachary Vance Date: Fri, 13 Aug 2021 01:58:03 +0000 (-0700) Subject: fix X-Git-Url: https://git.za3k.com/?a=commitdiff_plain;h=2bea7307ea237427a0837a7515c6643834c637e0;p=mqlg.git fix --- 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."""