Skip to content
Snippets Groups Projects
Commit 5718bd8e authored by Enric Tejedor Saavedra's avatar Enric Tejedor Saavedra
Browse files

Rename init function of PyROOT

Eliminate previous redundancy with namespace.
parent effca730
No related branches found
No related tags found
No related merge requests found
......@@ -89,7 +89,7 @@ extern "C" void initlibROOTPython()
PyModule_AddObject(gRootModule, (char *)"kSignalSafe", PyInt_FromLong((int)CallContext::kSafe));
// setup PyROOT
PyROOT::InitPyROOT();
PyROOT::Init();
// signal policy: don't abort interpreter in interactive mode
CallContext::SetSignalPolicy(gROOT->IsBatch() ? CallContext::kFast : CallContext::kSafe);
......
......@@ -35,7 +35,7 @@ static void AddToGlobalScope(const char *label, const char * /* hdr */, TObject
} // unnamed namespace
void PyROOT::InitPyROOT()
void PyROOT::Init()
{
// Initialize and acquire the GIL to allow for threading in ROOT
PyEval_InitThreads();
......
......@@ -5,7 +5,7 @@
namespace PyROOT {
// initialize ROOT
void InitPyROOT();
void Init();
} // namespace PyROOT
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment