Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Issue #738 select point by mouse change predefined coordinates of connected object
[modules/shaper.git]
/
salome_run.sh
diff --git
a/salome_run.sh
b/salome_run.sh
index e4dc6bd9527f5165eb18f7a981026990c7ac6393..164a02e3cb7193633eab39c85ca9c91e46dde976 100755
(executable)
--- a/
salome_run.sh
+++ b/
salome_run.sh
@@
-1,12
+1,22
@@
-#!/bin/
sh
+#!/bin/
bash -e
-export ROOT_DIR=$(pwd)/..
+a_dir=$(dirname $0)
-source ${ROOT_DIR}/sources/salome_env.sh
+cd ${a_dir}
-# Correcting path which defined with error
-export LD_LIBRARY_PATH=${KERNEL_ROOT_DIR}/lib/salome:${LD_LIBRARY_PATH}
+if [ "$#" = 1 ]; then
+ export SALOME_PORT="$1"
+elif [ -z ${SALOME_PORT} ]; then
+ export SALOME_PORT=2900
+fi
-e
xport LightAppConfig=${ROOT_DIR}/install/share/salome/resources/newgeom:${GUI_ROOT_DIR}/share/salome/resources/gui
+e
cho "Run SALOME on port ${SALOME_PORT}"
-SUITApp LightApp -style salome --modules=NewGeom --uselicense --noexcepthandling
\ No newline at end of file
+source ${a_dir}/env.sh
+source ${a_dir}/env_salome.sh
+
+set -x +e
+
+${a_dir}/salome_kill.sh
+
+${KERNEL_ROOT_DIR}/bin/salome/runSalome.py --port=${SALOME_PORT} -r ./test.squish/shared/testdata/SalomeApp.xml 2>&1 >/dev/null