forked from bendavid/WRemnants
-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathsetup.sh
More file actions
21 lines (16 loc) · 744 Bytes
/
setup.sh
File metadata and controls
21 lines (16 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
SCRIPT_FILE_REL_PATH="${BASH_SOURCE[0]}"
if [[ "$SCRIPT_FILE_REL_PATH" == "" ]]; then
SCRIPT_FILE_REL_PATH="${(%):-%N}"
fi
WREM_BASE=$( cd "$( dirname "${SCRIPT_FILE_REL_PATH}" )" && pwd )
export WREM_BASE=$(readlink -f "$WREM_BASE")
source ${WREM_BASE}/narf/setup.sh
source ${WREM_BASE}/rabbit/setup.sh
source ${WREM_BASE}/wums/setup.sh
export PYTHONPATH="${WREM_BASE}:$PYTHONPATH"
echo "Created environment variable WREM_BASE=${WREM_BASE}"
# utility variables pointing to specific folders in the filesystem
export COMBINE_STUDIES="${WREM_BASE}/scripts/combine/"
echo "Created environment variable COMBINE_STUDIES=${COMBINE_STUDIES}"
export PLOTS="${WREM_BASE}/scripts/analysisTools/"
echo "Created environment variable PLOTS=${PLOTS}"