]> SALOME platform Git repositories - tools/install.git/commitdiff
Salome HOME
Do not override existing PYTHONPATH
authorvsr <vsr@opencascade.com>
Mon, 17 Jan 2011 12:11:36 +0000 (12:11 +0000)
committervsr <vsr@opencascade.com>
Mon, 17 Jan 2011 12:11:36 +0000 (12:11 +0000)
config_files/Python-2.4.4.sh

index 55294ea392b47e807f7ed5941faa6f6fe8a378b8..7d7f1ce55c642315b1ea76b9d334808cba7b1e12 100755 (executable)
@@ -41,9 +41,9 @@ export PYTHONROOT=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
 export PYTHONHOME=\$PYTHONROOT
 export PATH=\${PYTHONROOT}/bin:\${PATH}
 export LD_LIBRARY_PATH=\${PYTHONROOT}/lib:\${LD_LIBRARY_PATH}
-export PYTHON_VERSION=\`python -c "import sys; print sys.version[:3]"\`
+export PYTHON_VERSION=$PY_LIBVERSION
 export PYTHON_INCLUDE=\${PYTHONROOT}/include/python\${PYTHON_VERSION}
-export PYTHONPATH=\${PYTHONROOT}/lib/python\${PYTHON_VERSION}
+export PYTHONPATH=\${PYTHONROOT}/lib/python\${PYTHON_VERSION}:\${PYTHONPATH}
 ##
 EOF
 (test -w ${PRODUCT_DIR} && cp ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh ${PRODUCT_DIR})