From: crouzet Date: Wed, 26 Sep 2007 15:45:46 +0000 (+0000) Subject: update PYTHONPATH in environment file for c++ components X-Git-Tag: V4_1_0~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=73fd7709f0fc03f8e9c969cd141f34ca494d2ec2;p=tools%2Fhxx2salome.git update PYTHONPATH in environment file for c++ components --- diff --git a/scripts/SA_build b/scripts/SA_build index 61c81b7..b63d776 100755 --- a/scripts/SA_build +++ b/scripts/SA_build @@ -259,6 +259,13 @@ update_environ() else echo -e "##\n#------ ${SOURCE_NAME}-Src ------\nexport $3=$4" >> ${ENVIRON_FILE} echo -e "##\n#------ ${SOURCE_NAME}-Bin ------\nexport $1=$2" >> ${ENVIRON_FILE} + if [ -d $2/lib/salome ] + then + # for salome modules, do nothing + #echo -e "export PYTHONPATH=\${${1}}/bin/salome:\${${1}}/lib/salome:\${${1}}/lib/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}" >> ${ENVIRON_FILE} + else + echo -e "export PYTHONPATH=\${${1}}/bin:\${${1}}/lib:\${PYTHONPATH}" >> ${ENVIRON_FILE} + fi fi else grep " $1" ${ENVIRON_FILE}.old > /dev/null @@ -272,6 +279,13 @@ update_environ() else echo -e "##\n#------ ${SOURCE_NAME}-Src ------\nsetenv $3 $4" >> ${ENVIRON_FILE} echo -e "##\n#------ ${SOURCE_NAME}-Bin ------\nsetenv $1 $2" >> ${ENVIRON_FILE} + if [ -d $2/lib/salome ] + then + #echo -e "setenv PYTHONPATH \${${1}}/bin/salome:\${${1}}/lib/salome:\${${1}}/lib/python\${PYTHON_VERSION}/site-packages/salome:\${PYTHONPATH}" >> ${ENVIRON_FILE} + else + echo -e "setenv PYTHONPATH \${${1}}/bin:\${${1}}/lib:\${PYTHONPATH}" >> ${ENVIRON_FILE} + fi + fi fi }