source: sasmodels/doc/genmodel.py @ 6dd90c1

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

fix doc build

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