Salome HOME
669f19c58c6afb79c299e5d2cd296fdb9a7a1a72
[modules/kernel.git] / bin / appliskel / runConsole
1 #!/bin/bash
2 # Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
3 #
4 # Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
5 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 #
7 # This library is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU Lesser General Public
9 # License as published by the Free Software Foundation; either
10 # version 2.1 of the License.
11 #
12 # This library is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 # Lesser General Public License for more details.
16 #
17 # You should have received a copy of the GNU Lesser General Public
18 # License along with this library; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
20 #
21 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 #
23
24
25 echo "##############################################"
26 echo "############### IMPORTANT NOTE ###############"
27 echo "##############################################"
28 echo "# The runConsole script is obsolete.         #"
29 echo "# Please consider the new salome.py command. #"
30 echo "# More info: cedric.aguerre@edf.fr           #"
31 echo "##############################################"
32
33
34 APPLI_HOME=`dirname $0`
35
36 # --- retrieve APPLI path, relative to $HOME, set ${APPLI}
37
38 export APPLI=`${APPLI_HOME}/getAppliPath.py`
39
40 # --- set the SALOME environment (prerequisites, MODULES_ROOT_DIR...)
41
42 . ${HOME}/${APPLI}/envd ${HOME}/${APPLI}
43
44 # --- open a Python interpreter with SALOME environment
45
46 ${KERNEL_ROOT_DIR}/bin/salome/envSalome.py python -i ${KERNEL_ROOT_DIR}/bin/salome/salomeConsole.py $*