#!/bin/bash
+save_config=$1
+
searchFreePort() {
echo -n "Searching for a free port for naming service: "
export NSPORT=2810
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} "
// --- set env vars
+ tempOutputFile << "source " << resInfo.PreReqFilePath << endl;
+
for (map<string, string>::const_iterator iter = resInfo.ModulesPath.begin();
iter != resInfo.ModulesPath.end();
iter++)
<< "/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