#include <PythonManager.h>
Definition at line 24 of file PythonManager.h.
PythonManager::PythonManager |
( |
| ) |
|
|
private |
Definition at line 37 of file PythonManager.cc.
References edm::hlt::Exception, initCommand_, initlibFWCorePython(), and query::result.
41 "sys.path.append('./')\n"
43 "ROOT.gSystem.Load(\"libFWCoreFWLite\")\n"
44 "ROOT.AutoLibraryLoader.enable()\n"
45 "import libFWCorePython as edm\n")
48 using namespace boost::python;
52 <<
"failed to add libFWCorePython python module to python interpreter";
55 boost::python::handle<PyObject>(borrowed(PyImport_AddModule(const_cast<char *>(
"__main__"))))));
56 object main_namespace = main_module.attr(
"__dict__");
61 main_namespace.ptr()))));
void initlibFWCorePython()
PythonManager::~PythonManager |
( |
| ) |
|
|
inlineprivate |
void PythonManager::decrement |
( |
| ) |
|
|
inlineprivate |
void PythonManager::increment |
( |
| ) |
|
|
inlineprivate |
std::string PythonManager::initCommand_ |
|
private |
unsigned long PythonManager::refCount_ |
|
private |