From ad9c7113015fe01b170dcc01e5f6940d432604fd Mon Sep 17 00:00:00 2001 From: prascle Date: Thu, 11 May 2006 07:18:09 +0000 Subject: [PATCH] PR: patch from Sergey Mozokhin (remote containers without SALOME APPLI) --- bin/runSalome | 6 ++++++ src/ResourcesManager/SALOME_ResourcesManager.cxx | 8 +++++--- 2 files changed, 11 insertions(+), 3 deletions(-) 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 -- 2.39.2