From 4841216207cf6f823ea793d56ab91e44dd3c3828 Mon Sep 17 00:00:00 2001 From: Walter Lampl <Walter.Lampl@cern.ch> Date: Wed, 16 Oct 2019 14:09:37 +0200 Subject: [PATCH] ComponentAccumulator.run(): Special treatment of MessageSvc to allow setting MessageSvc properties --- Control/AthenaConfiguration/python/ComponentAccumulator.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Control/AthenaConfiguration/python/ComponentAccumulator.py b/Control/AthenaConfiguration/python/ComponentAccumulator.py index 720f206abae..3d8a6b5e3a0 100644 --- a/Control/AthenaConfiguration/python/ComponentAccumulator.py +++ b/Control/AthenaConfiguration/python/ComponentAccumulator.py @@ -828,7 +828,12 @@ class ComponentAccumulator(object): #Add services for svc in self._services: - addCompToJos(svc) + if svc.getFullName()=="MessageSvc/MessageSvc": + #Message svc exists already! Needs special treatment + for k, v in svc.getValuedProperties().items(): + bsh.setProperty(msp,k,str(v).encode()) + else: + addCompToJos(svc) pass #Add tree of algorithm sequences: -- GitLab