Salome HOME
Merge Python 3 porting.
[samples/atomsolv.git] / bin / runATOMSOLV.in
index c4460737a0d8e38225a6d2e8677a046b582ab416..a2d30e1576e36b9154af4406aa33f1ebe7be912a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 
 # Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
 #
@@ -39,7 +39,7 @@ searchFreePort() {
             local myhost=`hostname`
             export OMNIORB_CONFIG=${HOME}/.omniORB_${myhost}_${NSPORT}.cfg
             local initref="NameService=corbaname::"`hostname`":$NSPORT"
-            if [[ `python -c "import CORBA; print CORBA.ORB_ID"` = "omniORB4" ]]; then
+            if [[ `python3 -c "import CORBA; print(CORBA.ORB_ID)"` = "omniORB4" ]]; then
                 echo "InitRef = $initref" > $OMNIORB_CONFIG
             else
                 echo "ORBInitRef $initref" > $OMNIORB_CONFIG
@@ -60,4 +60,4 @@ searchFreePort() {
 searchFreePort
 
 
-${KERNEL_ROOT_DIR}/bin/salome/envSalome.py python -i $ATOMSOLV_ROOT_DIR/bin/salome/runATOMSOLV.py --modules=ATOMGEN,ATOMSOLV --killall
+${KERNEL_ROOT_DIR}/bin/salome/envSalome.py python3 -i $ATOMSOLV_ROOT_DIR/bin/salome/runATOMSOLV.py --modules=ATOMGEN,ATOMSOLV --killall