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

index 57bbb10d221e3ec01645357923c68f881aea2812..d1cff1f6638acde9bda1d3bbd0664a06415ec771 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})