forked from cms-gem-daq-project/reg_utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
10 lines (9 loc) · 762 Bytes
/
setup.sh
1
2
3
4
5
6
7
8
9
10
if [[ ! "$0" =~ ("bash") ]]
then
# best for calling from zsh
export REG_UTILS=$(dirname $(readlink -f "$0") )
else
# bash specific, must be sourced from a bash shell...
export REG_UTILS=$(dirname $(readlink -f "${BASH_SOURCE[0]}"))
fi
export PATH=$PATH:$REG_UTILS/python/reg_interface