Skip to content

Commit c63f900

Browse files
committed
DDG4: eval all properties to avoid cppyy.gbl.string with bytes
1 parent 32ae1de commit c63f900

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

DDG4/python/DDG4.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -304,11 +304,11 @@ def _get(self, name):
304304
a = Interface.toAction(self)
305305
ret = Interface.getProperty(a, name)
306306
if ret.status > 0:
307-
return ret.data
307+
return _evalProperty(ret.data)
308308
elif hasattr(self.action, name):
309-
return getattr(self.action, name)
309+
return _evalProperty(getattr(self.action, name))
310310
elif hasattr(a, name):
311-
return getattr(a, name)
311+
return _evalProperty(getattr(a, name))
312312
msg = 'Geant4Action::GetProperty [Unhandled]: Cannot access property ' + a.name() + '.' + name
313313
raise KeyError(msg)
314314

0 commit comments

Comments
 (0)