-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup
More file actions
24 lines (16 loc) · 656 Bytes
/
setup
File metadata and controls
24 lines (16 loc) · 656 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env bash
function connectivityTest_doSetup() {
# detect where this script is
local ScriptDir="$(dirname "${BASH_SOURCE[0]}")"
# make it absolute!
if [[ "${ScriptDir#./}" != "$ScriptDir" ]] || [[ "${ScriptDir#../}" != "$ScriptDir" ]] || [[ "$ScriptDir" == '.' ]]; then
ScriptDir="$(pwd)/${ScriptDir}"
ScriptDir="${ScriptDir%/.}"
fi
# add this directory to the python module search path
export PYTHONPATH="${PYTHONPATH:+${PYTHONPATH}:}${ScriptDir}"
export ICARUSCONNECTIVITYTESTDIR="$ScriptDir"
# clear all tracks
unset connectivityTest_doSetup
} # connectivityTest_doSetup()
connectivityTest_doSetup