docttotxt error
This commit is contained in:
parent
a7018a1039
commit
fb0bff0fc4
|
@ -86,7 +86,7 @@ def docToTxt(**kwargs):
|
|||
txtPath = obj.txtPath()
|
||||
if not os.path.isfile(txtPath):
|
||||
os.system("antiword -f -m 'UTF-8' '%s' > %s" % (docFilePath, txtPath,))
|
||||
f = codecs.open("/tmp/tmpDocToTxt.txt", encoding='utf-8')
|
||||
f = codecs.open(txtPath, encoding='utf-8')
|
||||
txt = f.read()
|
||||
f.close()
|
||||
obj.doc_txt = txt
|
||||
|
|
Loading…
Reference in New Issue
Block a user