{
if( !
appMgr.isValid() || !propMgr.isValid() ) {
return 1;
}
propMgr->setProperty( "JobOptionsPath", opts ).ignore();
if( opts.substr( opts.length() - 3, 3 ) == ".py" ) {
propMgr->setProperty( "EvtSel", "NONE" ).ignore();
propMgr->setProperty( "JobOptionsType", "NONE" ).ignore();
propMgr->setProperty( "DLLs", "['GaudiPython']" ).ignore();
propMgr->setProperty( "Runable", "PythonScriptingSvc" ).ignore();
}
propMgr->getProperty(&returnCode).ignore();
if (sc.
isFailure() && returnCode.value() == 0) {
returnCode.setValue(1);
}
return returnCode.value();
}