diff options
author | Michele Mocciola | 2016-06-03 19:29:28 +0200 |
---|---|---|
committer | Michele Mocciola | 2016-06-03 19:29:28 +0200 |
commit | 08aeb57ecceeb66bd41843b5f0e68bfef9a7eb5c (patch) | |
tree | 067331a9cf2d008124481bd49504b1b769718e33 /salome-eficas.profile | |
parent | 5654ff51061c089c93829649ef4dcf0cebe781f8 (diff) | |
download | aur-salome-eficas.tar.gz |
Updated to compile on archlinux current
Diffstat (limited to 'salome-eficas.profile')
-rw-r--r-- | salome-eficas.profile | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/salome-eficas.profile b/salome-eficas.profile index bcd349640fc7..7a7277130e74 100644 --- a/salome-eficas.profile +++ b/salome-eficas.profile @@ -1,9 +1,20 @@ +export EFICAS_ROOT_DIR=/opt/salome export EFICAS_ROOT=/opt/eficas/public/eficas-2015.2/ -export EFICAS_ROOT_DIR=/opt/salome/eficas -export PYTHONPATH=$EFICAS_ROOT_DIR/lib/python2.7/site-packages/salome:$PYTHONPATH -export PYTHONPATH=$EFICAS_ROOT:$PYTHONPATH -export PYTHONPATH=$EFICAS_ROOT/UiQT4:$PYTHONPATH -export PYTHONPATH=$EFICAS_ROOT/Editeur:$PYTHONPATH +_pythonver=2.7 +_eficas_path=$EFICAS_ROOT_DIR/bin/salome +_eficas_pythonpath=$EFICAS_ROOT_DIR/lib/python${_pythonver}/site-packages/salome +_eficas_util_pythonpath=$EFICAS_ROOT:$EFICAS_ROOT/UiQT4:$EFICAS_ROOT/Editeur -export PATH=$EFICAS_ROOT_DIR/bin/salome:$PATH +# PYTHONPATH +if [[ $PYTHONPATH != *${_eficas_pythonpath}* ]]; then + export PYTHONPATH=${_eficas_pythonpath}:$PYTHONPATH +fi +if [[ $PYTHONPATH != *${_eficas_util_pythonpath}* ]]; then + export PYTHONPATH=${_eficas_util_pythonpath}:$PYTHONPATH +fi + +# PATH +if [[ $PATH != *${_eficas_path}* ]]; then + export PATH=${_eficas_path}:$PATH +fi |