core_shell_microgelscostrafo411magnetic_modelrelease_v0.94release_v0.95ticket-1257-vesicle-productticket_1156ticket_1265_superballticket_822_more_unit_tests
Last change
on this file since 1e11735 was
cb6ecf4,
checked in by pkienzle, 10 years ago
|
rename gen.py to generate.py for clarity
|
-
Property mode set to
100644
|
File size:
487 bytes
|
Line | |
---|
1 | import sys |
---|
2 | import os |
---|
3 | sys.path.insert(0,'..') |
---|
4 | |
---|
5 | # Convert ../sasmodels/models.name.py to sasmodels.models.name |
---|
6 | module_name = sys.argv[1][3:-3].replace('/','.').replace('\\','.') |
---|
7 | print module_name |
---|
8 | module = __import__(module_name) |
---|
9 | for part in module_name.split('.')[1:]: |
---|
10 | module = getattr(module, part) |
---|
11 | print module |
---|
12 | |
---|
13 | # Load the doc string from the module definition file and store it in rst |
---|
14 | from sasmodels import generate |
---|
15 | docstr = generate.doc(module) |
---|
16 | open(sys.argv[2],'w').write(docstr) |
---|
Note: See
TracBrowser
for help on using the repository browser.