Changeset 8884996 in sasview for pr_inversion/docs/sphinx/genmods.py


Ignore:
Timestamp:
Oct 24, 2011 1:46:34 PM (13 years ago)
Author:
Gervaise Alina <gervyh@…>
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
Message:

edit doc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pr_inversion/docs/sphinx/genmods.py

    rd84a90c r8884996  
    1616   :inherited-members: 
    1717   :show-inheritance: 
     18   :special-members: 
     19   :private-members: 
    1820 
    1921""" 
     
    5052    with open(os.path.join(dir,'index.rst'),'w') as f: 
    5153        f.write(INDEX_TEMPLATE%locals()) 
     54         
     55modules = [] 
     56path = os.path.dirname(os.path.join('..', '..', 'pr_inversion')) 
     57path = os.path.join(path, 'src', 'sans', 'pr') 
     58list = os.listdir(path) 
    5259 
    53  
    54 modules=[ 
    55     ('distance_explorer', 'distance_explorer'), 
    56     ('invertor', 'invertor'), 
    57     ('num_term', 'num_term'), 
    58 ] 
     60for 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) 
    5965package ='sans.pr' 
    6066package_name ='Reference' 
Note: See TracChangeset for help on using the changeset viewer.