Changeset a4f04f2 in sasview for sanscalculator/docs/sphinx/genmods.py
- Timestamp:
- Oct 24, 2011 1:50:18 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:
- 7247844
- Parents:
- 8884996
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sanscalculator/docs/sphinx/genmods.py
r0166aa6 ra4f04f2 16 16 :inherited-members: 17 17 :show-inheritance: 18 18 :special-members: 19 :private-members: 19 20 """ 20 21 … … 51 52 f.write(INDEX_TEMPLATE%locals()) 52 53 54 modules = [] 55 path = os.path.dirname(os.path.join('..', '..', 'sanscalculator')) 56 path = os.path.join(path, 'src', 'sans', 'calculator') 57 list = os.listdir(path) 53 58 54 modules=[ 55 ('instrument', 'Instrument'),56 ('slit_length_calculator', 'Slit Length Calculator'),57 ('kiessig_calculator', 'Kiessig Calculator'),58 ('resolution_calculator', 'Resolution Calculator')59 ] 59 for item in list: 60 toks = os.path.splitext(os.path.basename(item)) 61 if toks[1]=='.py' and toks[0] not in ["__init__"]: 62 exec "module = ('%s', '%s')"%(toks[0], toks[0]) 63 modules.append(module) 64 60 65 package='sans.calculator' 61 66 package_name='Reference'
Note: See TracChangeset
for help on using the changeset viewer.