From b297d2c427d389f99bbc8c6c2370382ce6823d16 Mon Sep 17 00:00:00 2001 From: mpv Date: Thu, 1 Sep 2016 12:52:34 +0300 Subject: [PATCH] Tune environment to the new SALOME behavior (it changes HOME to the current directory). So, if the current is not owner's (as GZY has), it will fail. Also it keeps the control, not exits from the script. --- env.sh | 2 ++ salome_run.sh | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/env.sh b/env.sh index f42749e9e..5c8cdb8a5 100644 --- a/env.sh +++ b/env.sh @@ -10,7 +10,9 @@ export AUT_DIR=$(pwd) # Path to env_*.sh files export TOOLS_DIR=$(pwd) +export HOME_OLD=$HOME source /dn64/series7x/work/init.sh 2016-06-20 +export HOME=$HOME_OLD # Path to solvespace-2 export SHAPER_PDIR=/dn48/newgeom/common/products diff --git a/salome_run.sh b/salome_run.sh index da38262f1..dcbb707ce 100755 --- a/salome_run.sh +++ b/salome_run.sh @@ -20,8 +20,8 @@ SALOME_ARGS="${SALOME_ARGS} --ns-port-log=$(pwd)/.salomeport" ${KERNEL_ROOT_DIR}/bin/salome/runSalome.py ${SALOME_ARGS} >log_runSalome 2>err_runSalome -SALOME_PORT=$(cat .salomeport) -echo "Kill SALOME on port ${SALOME_PORT}" -${KERNEL_ROOT_DIR}/bin/salome/killSalomeWithPort.py ${SALOME_PORT} -pkill -f "omniNames -start ${SALOME_PORT}" +#SALOME_PORT=$(cat .salomeport) +#echo "Kill SALOME on port ${SALOME_PORT}" +#${KERNEL_ROOT_DIR}/bin/salome/killSalomeWithPort.py ${SALOME_PORT} +#pkill -f "omniNames -start ${SALOME_PORT}" -- 2.39.2