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 31af069 was
67424cd,
checked in by Mathieu Doucet <doucetm@…>, 13 years ago
|
Reorganizing models in preparation of cpp cleanup
|
-
Property mode set to
100644
|
File size:
532 bytes
|
Line | |
---|
1 | import sys |
---|
2 | import os |
---|
3 | import os.path |
---|
4 | from WrapperGenerator import WrapperGenerator |
---|
5 | |
---|
6 | |
---|
7 | header_dir = os.path.join('..', 'c_extensions') |
---|
8 | |
---|
9 | nModels=0 |
---|
10 | for item in os.listdir(header_dir): |
---|
11 | toks = os.path.splitext(os.path.basename(item)) |
---|
12 | if toks[1]=='.h': |
---|
13 | nModels += 1 |
---|
14 | name = toks[0] |
---|
15 | app = WrapperGenerator(os.path.join(header_dir, name+".h")) |
---|
16 | app.read() |
---|
17 | app.write_c_wrapper() |
---|
18 | app.write_python_wrapper() |
---|
19 | print app |
---|
20 | print "Number total of models is %s" % nModels |
---|
Note: See
TracBrowser
for help on using the repository browser.