--- eficasQt.orig 2013-01-24 17:21:25.000000000 +0100 +++ eficasQt 2013-03-16 16:07:04.000000000 +0100 @@ -18,21 +18,16 @@ # ============================================================================== set_prefix() { - local this=`readlink -n -f $1` - eficasdir=`dirname $this` - local public=`dirname $eficasdir` - prefix=`dirname $public` + eficasdir=%%EFICASDIR%% + prefix=%%PREFIX%% } set_prefix $0 -export ASTER_ROOT=$prefix +export ASTER_ROOT=%%LOCALBASE%%/aster # set environment -if [ -f /etc/codeaster/profile.sh ]; then - . /etc/codeaster/profile.sh -fi -if [ -f $prefix/etc/codeaster/profile.sh ]; then - . $prefix/etc/codeaster/profile.sh +if [ -f $prefix/aster/etc/codeaster/profile.sh ]; then + . $prefix/aster/etc/codeaster/profile.sh fi # start Python interpreter @@ -44,5 +39,5 @@ PYTHONPATH=$PYTHONPATH:$EFICAS_ROOT/UiQT4 PYTHONPATH=$PYTHONPATH:$EFICAS_ROOT/Editeur -$PYTHONEXECUTABLE $eficasdir/Aster/qtEficas_aster.py $* +$PYTHONEXECUTABLE $eficasdir/Aster/qtEficas_aster.pyo $*