From: prascle Date: Thu, 11 May 2006 07:18:09 +0000 (+0000) Subject: PR: patch from Sergey Mozokhin (remote containers without SALOME APPLI) X-Git-Tag: V3_2_0b1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ad9c7113015fe01b170dcc01e5f6940d432604fd;p=modules%2Fkernel.git PR: patch from Sergey Mozokhin (remote containers without SALOME APPLI) --- diff --git a/bin/runSalome b/bin/runSalome index d0c37cc5d..cf715b617 100755 --- a/bin/runSalome +++ b/bin/runSalome @@ -1,5 +1,7 @@ #!/bin/bash +save_config=$1 + searchFreePort() { echo -n "Searching for a free port for naming service: " export NSPORT=2810 @@ -19,6 +21,10 @@ searchFreePort() { else echo "ORBInitRef $initref" > $OMNIORB_CONFIG fi + if [[ "$save_config" == "--save-config" ]] ; then + ln -sf $OMNIORB_CONFIG ${HOME}/.omniORB_current.cfg + export OMNIORB_CONFIG=${HOME}/.omniORB_current.cfg + fi break fi echo -n "${NSPORT} " diff --git a/src/ResourcesManager/SALOME_ResourcesManager.cxx b/src/ResourcesManager/SALOME_ResourcesManager.cxx index 434aa876b..0f9868036 100644 --- a/src/ResourcesManager/SALOME_ResourcesManager.cxx +++ b/src/ResourcesManager/SALOME_ResourcesManager.cxx @@ -780,6 +780,8 @@ SALOME_ResourcesManager::BuildTempFileToLaunchRemoteContainer // --- set env vars + tempOutputFile << "source " << resInfo.PreReqFilePath << endl; + for (map::const_iterator iter = resInfo.ModulesPath.begin(); iter != resInfo.ModulesPath.end(); iter++) @@ -791,15 +793,15 @@ SALOME_ResourcesManager::BuildTempFileToLaunchRemoteContainer << "/lib/salome" << ":${LD_LIBRARY_PATH}" << endl; tempOutputFile << "PYTHONPATH=" << curModulePath << "/bin/salome:" << curModulePath << "/lib/salome:" << curModulePath - << "/lib/python2.2/site-packages/salome:"; + << "/lib/python${PYTHON_VERSION}/site-packages/salome:"; tempOutputFile << curModulePath - << "/lib/python2.2/site-packages/salome/shared_modules:${PYTHONPATH}" + << "/lib/python${PYTHON_VERSION}/site-packages/salome/shared_modules:${PYTHONPATH}" << endl; } tempOutputFile << "export LD_LIBRARY_PATH" << endl; tempOutputFile << "export PYTHONPATH" << endl; - tempOutputFile << "source " << resInfo.PreReqFilePath << endl; + //tempOutputFile << "source " << resInfo.PreReqFilePath << endl; // ! env vars