diff --git a/k4FWCore/scripts/k4run b/k4FWCore/scripts/k4run index 2ce771dd..30d8c713 100755 --- a/k4FWCore/scripts/k4run +++ b/k4FWCore/scripts/k4run @@ -226,6 +226,7 @@ def main(): # Apply fixes from the k4FWCore wrapper from k4FWCore import ApplicationMgr + ApplicationMgr().fix_properties() from Gaudi.Main import gaudimain diff --git a/python/k4FWCore/ApplicationMgr.py b/python/k4FWCore/ApplicationMgr.py index b2e70c72..ac48f2f2 100644 --- a/python/k4FWCore/ApplicationMgr.py +++ b/python/k4FWCore/ApplicationMgr.py @@ -46,14 +46,14 @@ def fix_properties(self): except AttributeError: self._mgr.EventLoop = EventLoopMgr(Warnings=False) - if 'MetadataSvc' in self._mgr.allConfigurables: - self._mgr.ExtSvc.append(self._mgr.allConfigurables['MetadataSvc']) + if "MetadataSvc" in self._mgr.allConfigurables: + self._mgr.ExtSvc.append(self._mgr.allConfigurables["MetadataSvc"]) - if 'IOSvc' not in self._mgr.allConfigurables: + if "IOSvc" not in self._mgr.allConfigurables: return - if not isinstance(self._mgr.allConfigurables['IOSvc'], IOSvc): + if not isinstance(self._mgr.allConfigurables["IOSvc"], IOSvc): raise TypeError("The IOSvc is not an instance of IOSvc") - conf = self._mgr.allConfigurables['IOSvc'] + conf = self._mgr.allConfigurables["IOSvc"] props = conf.getPropertiesWithDescription() reader = writer = None diff --git a/test/k4FWCoreTest/options/ExampleFunctionalNonExistingFile.py b/test/k4FWCoreTest/options/ExampleFunctionalNonExistingFile.py index d8faf87a..1e6daf1e 100644 --- a/test/k4FWCoreTest/options/ExampleFunctionalNonExistingFile.py +++ b/test/k4FWCoreTest/options/ExampleFunctionalNonExistingFile.py @@ -37,4 +37,4 @@ EvtMax=-1, ExtSvc=[EventDataSvc("EventDataSvc")], OutputLevel=INFO, - ) +)