Skip to content

Commit

Permalink
Deal with outside CL arguments passed to crab_light.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
emaszs committed May 3, 2016
1 parent d3b292f commit dfb9fc9
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions etc/init-light.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,10 @@ CRAB3_PY_ROOT=$(getVariableValue \$CRABCLIENT_ROOT \$PYTHON_LIB_SITE_PACKAGES)
DBS3_PY_ROOT=$(getVariableValue \$DBS3_CLIENT_ROOT \$PYTHON_LIB_SITE_PACKAGES)
DBS3_PYCURL_ROOT=$(getVariableValue \$DBS3_PYCURL_CLIENT_ROOT \$PYTHON_LIB_SITE_PACKAGES)

if [ $# -gt 0 ]; then
if [ "x$1" == "x-csh" ]; then
echo "setenv PYTHONPATH $PYTHONPATH:$CRAB3_PY_ROOT:$DBS3_PY_ROOT:$DBS3_PYCURL_ROOT; \
setenv PATH $PATH:$CRAB3_BIN_ROOT"
else
exit 254
fi
else
if [ $# -gt 0 ] && [ "$1" == "-csh" ]; then
echo "setenv PYTHONPATH $PYTHONPATH:$CRAB3_PY_ROOT:$DBS3_PY_ROOT:$DBS3_PYCURL_ROOT; \
setenv PATH $PATH:$CRAB3_BIN_ROOT"
else
export PYTHONPATH=$PYTHONPATH:$CRAB3_PY_ROOT:$DBS3_PY_ROOT:$DBS3_PYCURL_ROOT
export PATH=$PATH:$CRAB3_BIN_ROOT
if [ -n "$BASH" ]; then
Expand Down

0 comments on commit dfb9fc9

Please sign in to comment.