Salome HOME
Python3: print => print() ngr/python3_dev
authorGilles DAVID <gilles-g.david@edf.fr>
Mon, 22 May 2017 13:46:21 +0000 (15:46 +0200)
committerGilles DAVID <gilles-g.david@edf.fr>
Mon, 22 May 2017 13:46:21 +0000 (15:46 +0200)
bin/runPYHELLO.in

index 03ecf2527333faba82a4f20cd7adaf52c6084dea..fe84a02544048af76b94331c03bc0d58c40a4ddd 100755 (executable)
@@ -41,7 +41,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 [[ `python -c "import CORBA; print(CORBA.ORB_ID)"` = "omniORB4" ]]; then
                 echo "InitRef = $initref" > $OMNIORB_CONFIG
             else
                 echo "ORBInitRef $initref" > $OMNIORB_CONFIG