MCPcopy Index your code
hub / github.com/LabPy/lantz / create_module_file

Function create_module_file

docs/driversdoc.py:75–82  ·  view source on GitHub ↗

Build the text of the file and write the file.

(package, module, opts)

Source from the content-addressed store, hash-verified

73
74
75def create_module_file(package, module, opts):
76 """Build the text of the file and write the file."""
77 text = ''
78 #mod = __import__(package + '.' + module)
79 #text += format_heading(1, getattr(mod, '__manufacturer__', module))
80 #text += format_heading(2, ':mod:`%s` Module' % module)
81 text += format_directive(module, package)
82 write_file(makename(package, module), text, opts)
83
84
85def create_modules_toc_file(modules, opts, name='modules'):

Callers 2

recurse_treeFunction · 0.85
mainFunction · 0.85

Calls 3

format_directiveFunction · 0.85
write_fileFunction · 0.85
makenameFunction · 0.85

Tested by

no test coverage detected