Warning, /PhysicsTools/HeppyCore/scripts/heppy is written in an unsupported language. File is not indexed.
0001 #!/usr/bin/env bash
0002 ln -sf $CMSSW_BASE/src/PhysicsTools/HeppyCore/scripts/heppy_loop.py tmp_heppy.py
0003
0004 # test the presence of the interactive flag
0005 interactive=false
0006 for var in "$@"
0007 do
0008 if [ $var == "-i" ]; then
0009 echo 'interactive mode'
0010 interactive=true
0011 fi
0012 done
0013
0014 if [ "$interactive" = true ]; then
0015 ipython -i -- tmp_heppy.py "$@"
0016 else
0017 ipython -- tmp_heppy.py "$@"
0018 fi
0019
0020 rm tmp_heppy.py