From dc6d12fe7af41113a1134944dd4b894151e8dc73 Mon Sep 17 00:00:00 2001 From: Jason Pellerin Date: Wed, 23 May 2007 02:35:18 +0000 Subject: Fixed mkindex.py script. Started revising index documentation. --- scripts/mkindex.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/mkindex.py b/scripts/mkindex.py index 24bdba6..dc2fd8c 100755 --- a/scripts/mkindex.py +++ b/scripts/mkindex.py @@ -1,6 +1,8 @@ #!/usr/bin/env python from docutils.core import publish_string, publish_parts +from nose.config import Config +from nose.plugins.manager import BuiltinPluginManager import nose import nose.commands import nose.tools @@ -39,8 +41,9 @@ news_html = publish_parts(news, writer_name='html') docs['news'] = news_html['body'] print "Usage..." -usage_txt = nose.configure(help=True).replace('mkindex.py', 'nosetests') -# FIXME remove example plugin & html output parts +conf = Config(plugins=BuiltinPluginManager()) +usage_txt = conf.help(nose.main.__doc__).replace( + 'mkindex.py', 'nosetests') docs['usage'] = '
%s
' % usage_txt out = tpl % docs -- cgit v1.2.1