source: sasmodels/doc/genmodel.py @ 91c5fdc

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

fix doc build

  • Property mode set to 100644
File size: 361 bytes
Line 
1import sys, os
2sys.path.insert(0, os.path.abspath('..'))
3from sasmodels import generate, core
4
5# Convert ../sasmodels/models/name.py to name
6model_name = os.path.basename(sys.argv[1])[:-3]
7
8# Load the doc string from the module definition file and store it in rst
9docstr = generate.make_doc(core.load_model_info(model_name))
10open(sys.argv[2],'w').write(docstr)
Note: See TracBrowser for help on using the repository browser.