allow apidoc using 'python -m sphinx.apidoc'

This commit is contained in:
Paul Kienzle 2015-06-04 15:01:27 -04:00
parent 6b8f29bb45
commit c9bc4d9698

View File

@ -373,3 +373,7 @@ Note: By default this script will not overwrite already created files.""")
qs.generate(d, silent=True, overwrite=opts.force)
elif not opts.notoc:
create_modules_toc_file(modules, opts)
# So program can be started with "python -m sphinx.apidoc ..."
if __name__ == "__main__":
main()