CMS 3D CMS Logo

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 *>("libFWCorePythonParameterSet");
29  PyImport_AppendInittab(libFWCoreParameterSet, &initlibFWCorePythonParameterSet );
30  Py_Initialize();
31  if(!s_initialized)
32  {
33  PyImport_ImportModule(libFWCoreParameterSet);
34  s_initialized = true;
35  }
36 
37  }
38  }
39 }
HLT enums.
void initializeModule()
static bool s_initialized