[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TextIndexNG/converters - doc.py:1.1.2.2
Andreas Jung
andreas@digicool.com
Thu, 28 Feb 2002 19:01:39 -0500
Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/TextIndexNG/converters
In directory cvs.zope.org:/tmp/cvs-serv15661
Modified Files:
Tag: ajung-textindexng-branch
doc.py
Log Message:
fixed import problem
=== Zope/lib/python/Products/PluginIndexes/TextIndexNG/converters/doc.py 1.1.2.1 => 1.1.2.2 ===
# $Id$
-import tempfile
-from os import popen, remove
+import tempfile, os
from Globals import package_home
from Products.PluginIndexes.TextIndexNG.BaseConverter import BaseConverter
-wvConf_file = path.join(package_home(globals()), 'wvText.xml')
+wvConf_file = os.path.join(package_home(globals()), 'wvText.xml')
class Converter(BaseConverter):
@@ -20,8 +19,8 @@
tmp_name = tempfile.mktemp()
open(tmp_name,'w').write(doc)
- text = popen('wvWare -x %s %s 2> /dev/null' % (wvConf_file, tmp_name)).read()
- remove(tmp_name)
+ text = os.popen('wvWare -x %s %s 2> /dev/null' % (wvConf_file, tmp_name)).read()
+ os.remove(tmp_name)
return text