]> SALOME platform Git repositories - modules/kernel.git/blob - bin/appliskel/runConsole
Salome HOME
PR: merge from branch BR_UnitTests tag mergeto_trunk_17oct05
[modules/kernel.git] / bin / appliskel / runConsole
1 #!/bin/bash
2
3 # --- retrieve APPLI path, relative to $HOME
4 #     on sarge, "which" gives not allways the absolute path...
5      
6 comName=`which $0`
7 aa=${comName:0:1}
8 if test x$aa == x\/; then
9   mycom=${comName}
10 elif test x$aa == x\.; then
11   mycom=${PWD}/${comName:2}
12 else
13   mycom=${PWD}/${comName}
14 fi
15 APPLI=`echo ${HOME} \`dirname $mycom\` | awk ' { print substr($2,length($1)+2) } '`
16 #echo $APPLI
17 export APPLI
18
19 # --- set the SALOME environment (prerequisites, MODULES_ROOT_DIR...)
20
21 . ${HOME}/${APPLI}/envd ${HOME}/${APPLI}
22
23 # --- open a Python interpreter with SALOME environment
24
25 ${KERNEL_ROOT_DIR}/bin/salome/envSalome.py python -i ${KERNEL_ROOT_DIR}/bin/salome/salomeConsole.py $*