Skip to content

Commit

Permalink
Don't add duplicated options for ToolSvcs
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Oct 28, 2024
1 parent 9efe708 commit 791b3b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion k4FWCore/scripts/k4run
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ def add_arguments(parser, app_mgr):
# can contain the same value multiple times
# see https://github.com/key4hep/k4FWCore/issues/141
for conf in frozenset(app_mgr.allConfigurables.values()):
if conf.name() in ["ApplicationMgr", "ToolSvc", "k4FWCore__Sequencer", "k4FWCore__Algs"]:
# ToolSvcs will have their properties duplicated, once as the
# named service itself and another one as "ToolSvc" if it's not
# excluded here
if any(name in conf.name() for name in ["ApplicationMgr", "ToolSvc"]):
continue
for prop_name, prop_value in conf.getPropertiesWithDescription().items():
if (
Expand Down

0 comments on commit 791b3b8

Please sign in to comment.