Doc index: Small improvement at the helper script.

Let it run, display output.

bzr revid: p_christ@hol.gr-20100624154204-wx4tius06tq32awe
This commit is contained in:
P. Christeas 2010-06-24 18:42:04 +03:00
parent f7ee7c4b14
commit 25a66882be
1 changed files with 3 additions and 0 deletions

3
addons/document/test_cindex.py Normal file → Executable file
View File

@ -31,6 +31,9 @@ for fname in args:
else:
res = cntIndex.doIndex(None, fname, None, fname,True)
if options.verbose:
for line in res[:5]:
print line
except Exception,e:
import traceback,sys
tb_s = reduce(lambda x, y: x+y, traceback.format_exception( sys.exc_type, sys.exc_value, sys.exc_traceback))