Salome HOME
Addind --disable-mesgerr configuration option
[tools/install.git] / config_files / PYLIGHT.sh
index 71464dcbc498d264c2343d7522b335520a153c01..1be242b39a8891303eb94518a0f6790cfaef43e4 100755 (executable)
@@ -29,19 +29,13 @@ return 1
 }
 
 print_env_bin(){
-if [ `uname -m` = "x86_64" ] && [ -d ${PRODUCT_DIR}/lib64 ] ; then 
-    LIB_PREFIX=64
-elif [ -d ${PRODUCT_DIR}/lib ] ; then 
-    LIB_PREFIX=""
-else 
-    LIB_PREFIX=64
-fi
 cat > ${INSTALL_WORK}/env_${PRODUCT_TYPE}.sh <<EOF 
 #$DELIM ${PRODUCT_TYPE} $DELIM
 export PYLIGHT_ROOT_DIR=\${INST_ROOT}/${SINGLE_DIR:-${PRODUCT}}
 if [ -n "\${ENV_FOR_LAUNCH}" ] ; then
   if [ "\${ENV_FOR_LAUNCH}" == "1" ] ; then
-    export LD_LIBRARY_PATH=\${PYLIGHT_ROOT_DIR}/lib${LIB_PREFIX}/salome:\${LD_LIBRARY_PATH}
+    export PATH=\${PYLIGHT_ROOT_DIR}/bin/salome:\${PATH}
+    export PYTHONPATH=\${PYLIGHT_ROOT_DIR}/bin/salome:\${PYTHONPATH}
   fi
 fi
 ##