| | 1 | |
| | 2 | This is a way to get python code documentation for Chimera. |
| | 3 | |
| | 4 | In Chimera-IDLE (on linux or *nix): |
| | 5 | {{{ |
| | 6 | import os |
| | 7 | os.makedirs('/var/tmp/chimera-pydoc') |
| | 8 | os.chdir('/var/tmp/chimera-pydoc') |
| | 9 | sharepath = os.path.join(os.getenv('CHIMERA'),'share') |
| | 10 | import pydoc |
| | 11 | pydoc.writedocs(sharepath) |
| | 12 | }}} |
| | 13 | |
| | 14 | It creates a lot of .html files in /var/tmp/chimera-pydoc/. The .html files contain links to the source .py files. Firefox will open the /var/tmp/chimera-pydoc directory and generate an index of all the files. The pydoc html is fairly well cross-linked. |