From ac4c83208f7a140304a8b769f59031952a0953c8 Mon Sep 17 00:00:00 2001 From: Valentin Volkl Date: Fri, 30 Apr 2021 13:06:38 +0200 Subject: [PATCH] [k4run] ensure no duplicates are in the list of configurables With some job configurations, some tools are part of this list twice, and then raise an argumenterror when k4run tries to add their properties as command line arguments --- k4FWCore/scripts/k4run | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k4FWCore/scripts/k4run b/k4FWCore/scripts/k4run index 3b1d0e22..2f7b53d1 100755 --- a/k4FWCore/scripts/k4run +++ b/k4FWCore/scripts/k4run @@ -70,7 +70,7 @@ if __name__ == "__main__": option_db = {} # loop over all components that were configured in the options file - for conf in list(ApplicationMgr.allConfigurables.values()): + for conf in set(list(ApplicationMgr.allConfigurables.values())): # skip public tools and the applicationmgr itself if "ToolSvc" not in conf.name() and "ApplicationMgr" not in conf.name(): props = conf.getPropertiesWithDescription() #dict propertyname: (propertyvalue, propertydescription)