Changeset d138d43 in sasmodels for doc/genmodel.py
- Timestamp:
- Nov 30, 2015 12:24:28 PM (8 years ago)
- Branches:
- master, core_shell_microgels, costrafo411, magnetic_model, release_v0.94, release_v0.95, ticket-1257-vesicle-product, ticket_1156, ticket_1265_superball, ticket_822_more_unit_tests
- Children:
- eb69cce
- Parents:
- 1ec7efa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/genmodel.py
r61ba623 rd138d43 1 1 import sys 2 import os3 2 sys.path.insert(0,'..') 4 3 5 4 # Convert ../sasmodels/models/name.py to sasmodels.models.name 6 5 module_name = sys.argv[1][3:-3].replace('/','.').replace('\\','.') 7 print module_name6 #print module_name 8 7 module = __import__(module_name) 9 8 for part in module_name.split('.')[1:]: 10 9 module = getattr(module, part) 11 print module10 #print module 12 11 13 12 # Load the doc string from the module definition file and store it in rst
Note: See TracChangeset
for help on using the changeset viewer.