Skip to content

Commit

Permalink
Merge pull request #4618 from emaszs/crab_light_fix
Browse files Browse the repository at this point in the history
Deal with outside CL arguments passed to crab_light.sh
  • Loading branch information
mmascher committed May 23, 2016
2 parents 85f62fc + dfb9fc9 commit be3f0b8
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 be3f0b8

Please sign in to comment.