From: vsr Date: Mon, 28 Feb 2005 07:05:36 +0000 (+0000) Subject: PAL8247: set PATH/LD_LIBRARY_PATH for Python (support Red Hat 9) X-Git-Tag: SALOME_V_2_2_1~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=594a1dbb635445c29d0c6e957153e93e86b2911e;p=tools%2Finstall.git PAL8247: set PATH/LD_LIBRARY_PATH for Python (support Red Hat 9) --- diff --git a/config_files/Python-2.2.1.sh b/config_files/Python-2.2.1.sh index 6773f8d..cf169df 100755 --- a/config_files/Python-2.2.1.sh +++ b/config_files/Python-2.2.1.sh @@ -52,6 +52,10 @@ if [ -n "${pythonhome}" ] ; then let ver=$maj_ver*10000+$min_ver*100+$rel_ver if [ $ver -ge 20201 ] ; then # if [ "`${pythonhome}/bin/python -V 2>&1`" == "Python 2.2.1" ] ; then + tmp="\${PYTHONHOME}/bin ${pythonhome}/bin \${PATH} ${PATH}"; + path=`sort_path ${tmp}` + tmp="\${PYTHONHOME}/lib/python2.2 ${pythonhome}/lib/python2.2 \${LD_LIBRARY_PATH} ${LD_LIBRARY_PATH}"; + ld_library_path=`sort_path ${tmp}` tmp="\${PYTHONHOME}/lib/python2.2 ${pythonhome}/lib/python2.2 \${PYTHONPATH} ${PYTHONPATH}"; pythonpath=`sort_path ${tmp}` cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <