#!/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}'
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."""