test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
initializeModule.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: PythonParameterSet
4 // Class : initializeModule
5 //
6 // Implementation:
7 // [Notes on implementation]
8 //
9 // Original Author: Chris Jones
10 // Created: Tue Jan 11 11:05:58 CST 2011
11 //
12 
13 // system include files
14 
15 // user include files
18 
19 
20 //
21 // constants, enums and typedefs
22 //
23 static bool s_initialized = false;
24 
25 namespace edm {
26  namespace python {
28  char *libFWCoreParameterSet = const_cast<char *>("libFWCoreParameterSet");
29  PyImport_AppendInittab(libFWCoreParameterSet, &initlibFWCoreParameterSet );
30  Py_Initialize();
31  if(!s_initialized)
32  {
33  PyImport_ImportModule(libFWCoreParameterSet);
34  s_initialized = true;
35  }
36 
37  }
38  }
39 }
void initializeModule()
static bool s_initialized