]> SALOME platform Git repositories - modules/kernel.git/blobdiff - bin/appliskel/runRemote.sh
Salome HOME
Compilation under Windows: add missing header
[modules/kernel.git] / bin / appliskel / runRemote.sh
index 77ea46fb8237718b9e18ea66e8e2437db3b1f466..a5a2db1559770a57deb28764840d13bd1b72b34f 100755 (executable)
@@ -1,5 +1,5 @@
 #!/bin/bash
-# Copyright (C) 2007-2019  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2007-2021  CEA/DEN, EDF R&D, OPEN CASCADE
 #
 # Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -55,10 +55,6 @@ export APPLI=$("${APPLI_HOME}/getAppliPath.py")
 export NSHOST=$1
 export NSPORT=$2
 
-# Get (in bash) the configuration filename from (Python) ORBConfigFile return values
-RETURN_VALUES=$("${KERNEL_ROOT_DIR}/bin/salome/envSalome.py" python "${KERNEL_ROOT_DIR}/bin/salome/ORBConfigFile.py" "${OMNIORB_USER_PATH}" "${NSHOST}" "${NSPORT}" "with_username=${USER}")
-export OMNIORB_CONFIG=$(echo "${RETURN_VALUES}" | cut -d' ' -f1)
-
 #go to the requested working directory if any
 if test "x$3" == "xWORKINGDIR"; then
   if test "x$4" = "x\$TEMPDIR"; then
@@ -87,6 +83,10 @@ else
   shift 2
 fi
 
+# Get (in bash) the configuration filename from (Python) ORBConfigFile return values
+RETURN_VALUES=$("${KERNEL_ROOT_DIR}/bin/salome/envSalome.py" python "${KERNEL_ROOT_DIR}/bin/salome/ORBConfigFile.py" "${OMNIORB_USER_PATH}" "${NSHOST}" "${NSPORT}" "with_username=${USER}")
+export OMNIORB_CONFIG=$(echo "${RETURN_VALUES}" | cut -d' ' -f1)
+
 # --- execute the command in the SALOME environment