Reputation: 5714
I know how to use pydoc from the command line. However, because of complicated environmental setup, it would be preferable to run it within a python script as a native API call. That is, my python runner looks a bit like this:
import pydoc pydoc.generate_html_docs_for(someFile)
However, it's not clear to me from the pydoc documentation which function calls I need to use to make this behavior work. Any ideas?
Upvotes: 8
Views: 2613
Reputation: 37644
Do you mean something like this?
>>> import pydoc
>>> pydoc.writedoc('sys')
wrote sys.html
>>>
Upvotes: 8