From: Gilles DAVID Date: Mon, 22 May 2017 13:46:21 +0000 (+0200) Subject: Python3: print => print() X-Git-Tag: V9_0_0~2^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=5a9ad1e6bc011c829a03168dfc70900835e887b5;p=samples%2Fpyhello.git Python3: print => print() --- diff --git a/bin/runPYHELLO.in b/bin/runPYHELLO.in index 03ecf25..fe84a02 100755 --- a/bin/runPYHELLO.in +++ b/bin/runPYHELLO.in @@ -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