Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
FWCore
PythonParameterSet
src
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
16
#include "
FWCore/PythonParameterSet/src/initializeModule.h
"
17
#include "
FWCore/PythonParameterSet/src/PythonModule.h
"
18
19
20
//
21
// constants, enums and typedefs
22
//
23
static
bool
s_initialized
=
false
;
24
25
namespace
edm {
26
namespace
python {
27
void
initializeModule
() {
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
}
PythonModule.h
initializeModule.h
edm::python::initializeModule
void initializeModule()
Definition:
initializeModule.cc:27
s_initialized
static bool s_initialized
Definition:
initializeModule.cc:23
Generated for CMSSW Reference Manual by
1.8.5