Skip to content
Snippets Groups Projects
Commit b2faa485 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

athenaHLT: Fix setting of interactive mode

The PSC modifies its state machine if we are running in interactive mode
(to allow debugging of the python configuration before initialize is
called). Previously interactive mode was flagged by a global
'interactive' variable. This is now done directly in athenaHLT.py.


Former-commit-id: b7139344
parent 0eca21b2
No related branches found
No related tags found
No related merge requests found
...@@ -340,6 +340,10 @@ def main(): ...@@ -340,6 +340,10 @@ def main():
# Modify pre/postcommands if necessary # Modify pre/postcommands if necessary
update_pcommands(args, cdict) update_pcommands(args, cdict)
# Tell the PSC if we are in interactive mode (relevant for state machine)
import TrigPSC.PscConfig
TrigPSC.PscConfig.interactive = args.interactive
# Run HLTMPPU # Run HLTMPPU
from HLTMPPy.runner import runHLTMPPy from HLTMPPy.runner import runHLTMPPy
runHLTMPPy(cdict) runHLTMPPy(cdict)
......
...@@ -59,10 +59,6 @@ if not _Conf.useOnlineTHistSvc: ...@@ -59,10 +59,6 @@ if not _Conf.useOnlineTHistSvc:
isvcMgr.declareSvcType("THistSvc","THistSvc") isvcMgr.declareSvcType("THistSvc","THistSvc")
setTHistSvcOutput() setTHistSvcOutput()
if 'interactive' in dir():
PscConfig.interactive = bool(interactive)
del interactive
## Some cleanup ## Some cleanup
del _Conf del _Conf
del logLevel del logLevel
...@@ -144,11 +144,6 @@ else: ...@@ -144,11 +144,6 @@ else:
sys.exit( theApp._exitstate ) sys.exit( theApp._exitstate )
raise raise
if 'interactive' in dir():
import TrigPSC.PscConfig
TrigPSC.PscConfig.interactive = bool(interactive)
del interactive
### run user jobOptions file ------------------------------------------------- ### run user jobOptions file -------------------------------------------------
try: try:
include( "%s" % PscConfig.optmap['JOBOPTIONSPATH'] ) include( "%s" % PscConfig.optmap['JOBOPTIONSPATH'] )
......
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