- cmd='PYTHONPATH=%s pydoctor --introspect-c-modules --project-name=Samba --project-url=http://www.samba.org --make-html --docformat=restructuredtext --add-package bin/python/samba --add-module %s --add-module %s --add-module %s' % (
- bp, mpaths['tdb'], mpaths['ldb'], mpaths['talloc'], mpaths['ntdb'])
+ mpaths['main'] = bp
+ cmd = ('PYTHONPATH=%(main)s pydoctor --introspect-c-modules --project-name=Samba '
+ '--project-url=http://www.samba.org --make-html --docformat=restructuredtext '
+ '--add-package bin/python/samba ' + ''.join('--add-module %s ' % n for n in modules))
+ cmd = cmd % mpaths