Salome HOME
This commit was generated by cvs2git to create branch 'OCC_Config'.
[modules/kernel.git] / bin / appliskel / runAppli
1 #!/bin/bash
2
3 # --- retrieve APPLI path, relative to $HOME, set ${APPLI}
4
5 . `dirname $0`/setAppliPath.sh
6
7 # --- set the SALOME environment (prerequisites, MODULES_ROOT_DIR...)
8
9 . ${HOME}/${APPLI}/envd ${HOME}/${APPLI}
10
11 # --- define port for CORBA naming service
12
13 . `dirname $0`/searchFreePort.sh
14 searchFreePort
15
16 # --- if mpi lam, start lam (seems safe to be done several times)
17 #     arret manuel avec lamhalt
18
19 if [ "$LAMBHOST" ]; then
20   lamboot
21 fi
22
23 # --- run SALOME
24 #    (default arguments defined in local salome.launch could be completed
25 #     by arguments to this command)
26
27 if [ $# -ne 0 ] ; then
28     ${KERNEL_ROOT_DIR}/bin/salome/envSalome.py python -i ${KERNEL_ROOT_DIR}/bin/salome/runSalome.py $*
29
30 else
31     ${KERNEL_ROOT_DIR}/bin/salome/envSalome.py python ${KERNEL_ROOT_DIR}/bin/salome/runSalome.py 
32 fi