Skip to content
Snippets Groups Projects
Commit e191670e authored by Walter Lampl's avatar Walter Lampl
Browse files

Merge branch 'OptionSvcItems' into 'master'

JobConfig pickeling: Use IOptionsSvc interface instead of IJobOptionsSvc

See merge request atlas/athena!35994
parents a3b4c626 ff8cc42a
No related branches found
No related tags found
No related merge requests found
......@@ -222,15 +222,14 @@ def storeJobOptionsCatalogue( cfg_fname ):
# get the values for all other components (these may contain duplicates of
# the ones above in svcs, and there may even be conflicts)
import AthenaPython.PyAthena as PyAthena
josvc = PyAthena.py_svc( 'JobOptionsSvc', iface = 'IJobOptionsSvc' )
clients = list( josvc.getClients() )
for client in clients:
props = josvc.getProperties( client )
for prop in props:
n = prop.name()
v = prop.toString()
jocat[ client ][ n ] = v
josvc = PyAthena.py_svc( 'JobOptionsSvc',iface="Gaudi::Interfaces::IOptionsSvc")
allProps=josvc.items() #a std::tuple<string,string>
for prop in allProps:
cn=str(prop._0).split(".")
v=str(prop._1)
client=".".join(cn[:-1])
n=cn[-1]
jocat[ client ][ n ] = v
# take care of some ancient history
for k in ( 'Go', 'Exit' ):
......
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