Salome HOME
Join modifications from BR_Dev_For_4_0 tag V4_1_1.
[modules/kernel.git] / bin / appliskel / runAppli
1 #!/bin/bash
2
3 APPLI_HOME=`dirname $0`
4
5 # --- retrieve APPLI path, relative to $HOME, set ${APPLI}
6
7 export APPLI=`${APPLI_HOME}/getAppliPath.py`
8
9 # --- set the SALOME environment (prerequisites, MODULES_ROOT_DIR...)
10
11 . ${HOME}/${APPLI}/envd ${HOME}/${APPLI}
12
13 # --- if mpi lam, start lam (seems safe to be done several times)
14 #     (manual stop with lamhalt)
15
16 if [ "$LAMBHOST" ]; then
17   lamboot
18 fi
19
20 # --- run SALOME
21 #    (default arguments defined in local SalomeApp.xml could be completed
22 #     by arguments to this command)
23
24 if [ $# -ne 0 ] ; then
25     ${KERNEL_ROOT_DIR}/bin/salome/envSalome.py python ${KERNEL_ROOT_DIR}/bin/salome/runSalome.py $*
26
27 else
28     ${KERNEL_ROOT_DIR}/bin/salome/envSalome.py python ${KERNEL_ROOT_DIR}/bin/salome/runSalome.py 
29 fi