296 Bootstrap the application with minimal use of Python bindings. 299 from GaudiKernel.Proxy.Configurable
import expandvars
304 from GaudiKernel.Proxy.Configurable
import Configurable, getNeededConfigurables
307 if _bootstrap
is None:
310 self.log.debug(
'basicInit: instantiate ApplicationMgr')
311 self.
ip = self.
g = _bootstrap.createApplicationMgr()
313 self.log.debug(
'basicInit: apply options')
316 comp =
'ApplicationMgr' 317 props = Configurable.allConfigurables.get(comp, {})
319 props =
expandvars(props.getValuedProperties())
320 for p, v
in props.items() + [(
'JobOptionsType',
'NONE')]:
321 if not self.g.setProperty(p, str(v)):
322 self.log.error(
'Cannot set property %s.%s to %s', comp, p, v)
325 if _bootstrap.ROOT_VERSION < (6, 2, 7):
333 msp = self.g.getService(comp)
335 self.log.error(
'Cannot get service %s', comp)
337 props = Configurable.allConfigurables.get(comp, {})
339 props =
expandvars(props.getValuedProperties())
340 for p, v
in props.items():
341 if not _bootstrap.setProperty(msp, p, str(v)):
342 self.log.error(
'Cannot set property %s.%s to %s', comp, p, v)
346 comp =
'JobOptionsSvc' 347 jos = self.g.getService(comp)
349 self.log.error(
'Cannot get service %s', comp)
352 c = Configurable.allConfigurables[n]
353 if n
in [
'ApplicationMgr',
'MessageSvc']:
355 for p, v
in c.getValuedProperties().items():
358 if hasattr(Configurable,
"PropertyReference")
and type(v) == Configurable.PropertyReference:
364 elif type(v) == long:
366 _bootstrap.addPropertyToCatalogue(jos, n, p, str(v))
367 if hasattr(Configurable,
"_configurationLocked"):
368 Configurable._configurationLocked =
True 369 self.log.debug(
'basicInit: done')