Changeset 67424cd in sasview for sansmodels/src/python_wrapper/wrapping.py
- Timestamp:
- Jan 4, 2012 3:17:10 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:
- 31af069
- Parents:
- 8bea12dd
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
sansmodels/src/python_wrapper/wrapping.py
r9ce41c6 r67424cd 5 5 6 6 7 root= os.path.dirname(os.getcwd())7 header_dir = os.path.join('..', 'c_extensions') 8 8 9 dir = os.path.join(root, "c_extensions")10 #print "dir", dir11 list= os.listdir(dir)12 9 nModels=0 13 for item in list:10 for item in os.listdir(header_dir): 14 11 toks = os.path.splitext(os.path.basename(item)) 15 12 if toks[1]=='.h': 16 13 nModels += 1 17 14 name = toks[0] 18 app = WrapperGenerator(os.path.join( '..','c_extensions',name+".h"))15 app = WrapperGenerator(os.path.join(header_dir, name+".h")) 19 16 app.read() 20 17 app.write_c_wrapper() 21 18 app.write_python_wrapper() 22 19 print app 23 print "Number total of models is %s" %nModels20 print "Number total of models is %s" % nModels
Note: See TracChangeset
for help on using the changeset viewer.