comparison bin/plinks.py @ 9:7a93e190c74d

logging tweaks, preparing for timeout on problem pdfs
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Tue, 25 Feb 2020 10:34:41 +0000
parents 25ca3505b4d7
children a33db8e3f51c
comparison
equal deleted inserted replaced
8:3b56c2c9d0ee 9:7a93e190c74d
3 from datetime import datetime 3 from datetime import datetime
4 from os import path 4 from os import path
5 5
6 def run(file): 6 def run(file):
7 global pdf 7 global pdf
8 pdf=pdfx.PDFx(file) 8 pdf=pdfx.PDFx(file,limit=30)
9 return pdf.get_references_as_dict() 9 return pdf.get_references_as_dict()
10 10
11 tarnum=sys.argv[1] 11 tarnum=sys.argv[1]
12 print(tarnum, sys.argv, os.getcwd(),file=sys.stderr) 12 print(tarnum, sys.argv, os.getcwd(),file=sys.stderr)
13 gf=0 13 gf=0