osx fixes
This commit is contained in:
parent
f134f1ff62
commit
c58a8a5bcb
2 changed files with 31 additions and 7 deletions
|
|
@ -125,7 +125,7 @@ def info(pdf):
|
|||
'''
|
||||
def extract_text(pdf):
|
||||
if sys.platform == 'darwin':
|
||||
cmd = ['/usr/bin/mdimport' '-d2', pdf]
|
||||
cmd = ['/usr/bin/mdimport', '-d2', pdf]
|
||||
else:
|
||||
cmd = ['pdftotext', pdf, '-']
|
||||
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue