Skip to content
Snippets Groups Projects
Commit c63f9001 authored by Andre Sailer's avatar Andre Sailer
Browse files

DDG4: eval all properties to avoid cppyy.gbl.string with bytes

parent 32ae1de9
No related branches found
No related tags found
No related merge requests found
...@@ -304,11 +304,11 @@ def _get(self, name): ...@@ -304,11 +304,11 @@ def _get(self, name):
a = Interface.toAction(self) a = Interface.toAction(self)
ret = Interface.getProperty(a, name) ret = Interface.getProperty(a, name)
if ret.status > 0: if ret.status > 0:
return ret.data return _evalProperty(ret.data)
elif hasattr(self.action, name): elif hasattr(self.action, name):
return getattr(self.action, name) return _evalProperty(getattr(self.action, name))
elif hasattr(a, name): elif hasattr(a, name):
return getattr(a, name) return _evalProperty(getattr(a, name))
msg = 'Geant4Action::GetProperty [Unhandled]: Cannot access property ' + a.name() + '.' + name msg = 'Geant4Action::GetProperty [Unhandled]: Cannot access property ' + a.name() + '.' + name
raise KeyError(msg) raise KeyError(msg)
......
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