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 4ab1c91 was
f2d6445,
checked in by Mathieu Doucet <doucetm@…>, 17 years ago
|
moving realSpaceModeling to trunk
|
-
Property mode set to
100644
|
File size:
1.2 KB
|
Line | |
---|
1 | // -*- C++ -*- |
---|
2 | // |
---|
3 | // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
4 | // |
---|
5 | // Michael A.G. Aivazis |
---|
6 | // California Institute of Technology |
---|
7 | // (C) 1998-2005 All Rights Reserved |
---|
8 | // |
---|
9 | // <LicenseText> |
---|
10 | // |
---|
11 | // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
12 | // |
---|
13 | |
---|
14 | //#include <portinfo> |
---|
15 | |
---|
16 | #include <Python.h> |
---|
17 | |
---|
18 | #include "exceptions.h" |
---|
19 | #include "bindings.h" |
---|
20 | |
---|
21 | |
---|
22 | char pyiqPy_module__doc__[] = ""; |
---|
23 | |
---|
24 | // Initialization function for the module (*must* be called initiqPy) |
---|
25 | extern "C" |
---|
26 | void |
---|
27 | initiqPy() |
---|
28 | { |
---|
29 | // create the module and add the functions |
---|
30 | PyObject * m = Py_InitModule4( |
---|
31 | "iqPy", pyiqPy_methods, |
---|
32 | pyiqPy_module__doc__, 0, PYTHON_API_VERSION); |
---|
33 | |
---|
34 | // get its dictionary |
---|
35 | PyObject * d = PyModule_GetDict(m); |
---|
36 | |
---|
37 | // check for errors |
---|
38 | if (PyErr_Occurred()) { |
---|
39 | Py_FatalError("can't initialize module iqPy"); |
---|
40 | } |
---|
41 | |
---|
42 | // install the module exceptions |
---|
43 | pyiqPy_runtimeError = PyErr_NewException("iqPy.runtime", 0, 0); |
---|
44 | PyDict_SetItemString(d, "RuntimeException", pyiqPy_runtimeError); |
---|
45 | |
---|
46 | return; |
---|
47 | } |
---|
48 | |
---|
49 | // version |
---|
50 | // $Id$ |
---|
51 | |
---|
52 | // End of file |
---|
Note: See
TracBrowser
for help on using the repository browser.