/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
PhysicsTools/HeppyCore/scripts/heppy
20 строк
401 B
Colin
Heppy: repaired heppy interactive mode (no exit at the end)
05 янв 2016, 13:49
05 янв 2016, 13:49
d9c4f5d
Код
Авторство
О чём код?
#!/usr/bin/env bash ln -sf $CMSSW_BASE/src/PhysicsTools/HeppyCore/scripts/heppy_loop.py tmp_heppy.py # test the presence of the interactive flag interactive=false for var in "$@" do if [ $var == "-i" ]; then echo 'interactive mode' interactive=true fi done if [ "$interactive" = true ]; then ipython -i -- tmp_heppy.py "$@" else ipython -- tmp_heppy.py "$@" fi rm tmp_heppy.py