-#!/bin/sh
+#!/bin/bash
# Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
#
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
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
#
if __name__ == "__main__":
- import user
from runSalome import *
clt,args = main()
#
if clt != None:
- print
- print " --- registered objects tree in Naming Service ---"
+ print()
+ print(" --- registered objects tree in Naming Service ---")
clt.showNS()
session=clt.waitNS("/Kernel/Session")
catalog=clt.waitNS("/Kernel/ModulCatalog")