From fb0bff0fc4b1ddfa04a9b6705900a88148545ace Mon Sep 17 00:00:00 2001 From: sanj Date: Fri, 9 Apr 2010 00:50:23 +0530 Subject: [PATCH] docttotxt error --- itf/erang/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itf/erang/models.py b/itf/erang/models.py index 8ba10f9..035d8e9 100644 --- a/itf/erang/models.py +++ b/itf/erang/models.py @@ -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