Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (16 sloc) 489 Bytes
import sys
from optparse import OptionParser
parser = OptionParser()
(options, args) = parser.parse_args()
if len(args) != 1:
print "usage: otfbot.plugins.service.somePlugin"
print "i.e.:"
import doctest
print args[0]
module = __import__(args[0], fromlist=["*"])
print module
doctest.testmod(module, verbose=True)
except ImportError, e:
print "import error for module \"%s\" %s" % (args[0], e)
You can’t perform that action at this time.