ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change
on this file since 30ccad1 was
9ce41c6,
checked in by Gervaise Alina <gervyh@…>, 15 years ago
|
wrote unittest for all model untested , haven' test critial point error handling
|
-
Property mode set to
100644
|
File size:
591 bytes
|
Rev | Line | |
---|
[9ce41c6] | 1 | import sys |
---|
| 2 | import os |
---|
| 3 | import os.path |
---|
| 4 | from WrapperGenerator import WrapperGenerator |
---|
| 5 | |
---|
| 6 | |
---|
| 7 | root= os.path.dirname(os.getcwd()) |
---|
| 8 | |
---|
| 9 | dir = os.path.join(root, "c_extensions") |
---|
| 10 | #print "dir", dir |
---|
| 11 | list= os.listdir(dir) |
---|
| 12 | nModels=0 |
---|
| 13 | for item in list: |
---|
| 14 | toks = os.path.splitext(os.path.basename(item)) |
---|
| 15 | if toks[1]=='.h': |
---|
| 16 | nModels += 1 |
---|
| 17 | name = toks[0] |
---|
| 18 | app = WrapperGenerator(os.path.join('..','c_extensions',name+".h")) |
---|
| 19 | app.read() |
---|
| 20 | app.write_c_wrapper() |
---|
| 21 | app.write_python_wrapper() |
---|
| 22 | print app |
---|
| 23 | print "Number total of models is %s"%nModels |
---|
Note: See
TracBrowser
for help on using the repository browser.