]> git.za3k.com Git - mqlg.git/commitdiff
fix
authorZachary Vance <za3k@za3k.com>
Fri, 13 Aug 2021 01:58:03 +0000 (18:58 -0700)
committerZachary Vance <za3k@za3k.com>
Fri, 13 Aug 2021 01:58:03 +0000 (18:58 -0700)
sm.py

diff --git a/sm.py b/sm.py
index db1cc0c12b86f5b59d550264bc0f3b2dabb94935..417225dbfc70bf131b0cc8d49a59d52925ba75fd 100644 (file)
--- 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."""