Ignore:
Timestamp:
Jan 4, 2012 3:17:10 PM (13 years ago)
Author:
Mathieu Doucet <doucetm@…>
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:
31af069
Parents:
8bea12dd
Message:

Reorganizing models in preparation of cpp cleanup

File:
1 moved

Legend:

Unmodified
Added
Removed
  • sansmodels/src/python_wrapper/wrapping.py

    r9ce41c6 r67424cd  
    55 
    66 
    7 root= os.path.dirname(os.getcwd()) 
     7header_dir = os.path.join('..', 'c_extensions') 
    88 
    9 dir = os.path.join(root, "c_extensions") 
    10 #print "dir", dir 
    11 list= os.listdir(dir) 
    129nModels=0 
    13 for item in list: 
     10for item in os.listdir(header_dir): 
    1411    toks = os.path.splitext(os.path.basename(item)) 
    1512    if toks[1]=='.h': 
    1613        nModels += 1 
    1714        name = toks[0] 
    18         app = WrapperGenerator(os.path.join('..','c_extensions',name+".h")) 
     15        app = WrapperGenerator(os.path.join(header_dir, name+".h")) 
    1916        app.read() 
    2017        app.write_c_wrapper() 
    2118        app.write_python_wrapper() 
    2219        print app 
    23 print "Number total of models is %s"%nModels 
     20print "Number total of models is %s" % nModels 
Note: See TracChangeset for help on using the changeset viewer.