source: sasmodels/doc/genmodel.py @ 3eb3312

core_shell_microgelscostrafo411magnetic_modelrelease_v0.94release_v0.95ticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change on this file since 3eb3312 was d138d43, checked in by Paul Kienzle <pkienzle@…>, 9 years ago

remove documentation build errors

  • Property mode set to 100644
File size: 479 bytes
Line 
1import sys
2sys.path.insert(0,'..')
3
4# Convert ../sasmodels/models/name.py to sasmodels.models.name
5module_name = sys.argv[1][3:-3].replace('/','.').replace('\\','.')
6#print module_name
7module = __import__(module_name)
8for part in module_name.split('.')[1:]:
9    module = getattr(module, part)
10#print module
11
12# Load the doc string from the module definition file and store it in rst
13from sasmodels import generate
14docstr = generate.doc(module)
15open(sys.argv[2],'w').write(docstr)
Note: See TracBrowser for help on using the repository browser.