Salome HOME
PAL13183: correct environment variables in custom SALOME launching script (runAppli)
[samples/pyhello.git] / bin / runAppli.in
index 3a1e9bbdac60954650bdfef8ee5c52652742bac4..cde6cf2c87561723003e3e7443b55fc9c36bcadb 100755 (executable)
@@ -1,7 +1,11 @@
 #!/bin/sh
 
+if [ -z "${KERNEL_ROOT_DIR}" ] ; then 
 export KERNEL_ROOT_DIR=@KERNEL_ROOT_DIR@
+fi
+if [ -z "${PYHELLO_ROOT_DIR}" ] ; then 
 export PYHELLO_ROOT_DIR=@prefix@
+fi
 
 searchFreePort() {
     echo -n "Searching for a free port for naming service: "