Changeset 8884996 in sasview for pr_inversion/docs/sphinx/genmods.py
- Timestamp:
- Oct 24, 2011 1:46:34 PM (13 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- a4f04f2
- Parents:
- f696e2a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pr_inversion/docs/sphinx/genmods.py
rd84a90c r8884996 16 16 :inherited-members: 17 17 :show-inheritance: 18 :special-members: 19 :private-members: 18 20 19 21 """ … … 50 52 with open(os.path.join(dir,'index.rst'),'w') as f: 51 53 f.write(INDEX_TEMPLATE%locals()) 54 55 modules = [] 56 path = os.path.dirname(os.path.join('..', '..', 'pr_inversion')) 57 path = os.path.join(path, 'src', 'sans', 'pr') 58 list = os.listdir(path) 52 59 53 54 modules=[ 55 ('distance_explorer', 'distance_explorer'), 56 ('invertor', 'invertor'), 57 ('num_term', 'num_term'), 58 ] 60 for item in list: 61 toks = os.path.splitext(os.path.basename(item)) 62 if toks[1]=='.py' and toks[0] not in ["__init__"]: 63 exec "module = ('%s', '%s')"%(toks[0], toks[0]) 64 modules.append(module) 59 65 package ='sans.pr' 60 66 package_name ='Reference'
Note: See TracChangeset
for help on using the changeset viewer.