setpath.sh 852 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
# Bash command to set ALTA environment for ease of use.
# Invoke this script one GNU/Linux or OSX using the source
# command:
#
#    source setpath.sh
#
# ALTA command line programs and plugins will be available
# to the shell.
#
10
sources=`pwd`
11

12
if [ "$BASH_VERSION" ]; then
13 14
        sources=`dirname $BASH_SOURCE`
        sources=`builtin cd ${sources}; builtin pwd`
15
elif [ "$ZSH_VERSION" ]; then
16
        sources=$(dirname "$0:A")
17
fi
18 19 20

builddir="$sources/build"

21
external=${sources}/external/build/lib
22
scripts=${sources}/sources/scripts/
23

24
export ALTA=$sources
25
export ALTA_DIR=$sources/sources
26
export ALTA_PLUGIN_PATH="$builddir/plugins"
27 28 29
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$builddir/plugins:$external"
export PATH="$PATH:$builddir/softs:$scripts"
export PYTHONPATH="$PYTHONPATH:$builddir/python"
30
export JUPYTER_PATH="$JUPYTER_PATH:$builddir/python"