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 // $Id: initializeModule.cc,v 1.1 2011/01/11 19:25:55 chrjones Exp $
12 //
13 
14 // system include files
15 
16 // user include files
19 
20 
21 //
22 // constants, enums and typedefs
23 //
24 static bool s_initialized = false;
25 
26 namespace edm {
27  namespace python {
29  char *libFWCoreParameterSet = const_cast<char *>("libFWCoreParameterSet");
30  PyImport_AppendInittab(libFWCoreParameterSet, &initlibFWCoreParameterSet );
31  Py_Initialize();
32  if(!s_initialized)
33  {
34  PyImport_ImportModule(libFWCoreParameterSet);
35  s_initialized = true;
36  }
37 
38  }
39  }
40 }
void initializeModule()
static bool s_initialized