Skip to content
Snippets Groups Projects
Commit b88785ef authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Adapt to replacement of libPyROOT

see https://sft.its.cern.ch/jira/browse/ROOT-10771
parent 3e51cc18
No related branches found
No related tags found
1 merge request!1071Fixes for ROOT master
......@@ -87,7 +87,7 @@ namespace GaudiPython { namespace Helpers {
# toIntArray, toShortArray, etc.
for l in [l for l in dir(Helper) if re.match("^to.*Array$", l)]:
exec ("%s = Helper.%s" % (l, l))
exec("%s = Helper.%s" % (l, l))
__all__.append(l)
# FIXME: (MCl) Hack to handle ROOT 5.18 and ROOT >= 5.20
......@@ -103,9 +103,13 @@ else:
# ----Convenient accessors to PyROOT functionality ----------------------------
ROOT = cppyy.libPyROOT
makeNullPointer = cppyy.libPyROOT.MakeNullPointer
setOwnership = cppyy.libPyROOT.SetOwnership
# See https://sft.its.cern.ch/jira/browse/ROOT-10771
if hasattr(cppyy, 'libPyROOT'):
ROOT = cppyy.libPyROOT
else:
import ROOT
makeNullPointer = ROOT.MakeNullPointer
setOwnership = ROOT.SetOwnership
def deprecation(message):
......
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