ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/crab
Revision: 1.11
Committed: Tue Oct 30 17:39:07 2007 UTC (17 years, 6 months ago) by spiga
Branch: MAIN
CVS Tags: CRAB_2_0_2_pre2, CRAB_2_0_2_pre1
Changes since 1.10: +2 -4 lines
Log Message:
changed check and print output since the source order is not more mandatory

File Contents

# User Rev Content
1 gutsche 1.3 #!/usr/bin/env sh
2 slacapra 1.1 #
3     # 07-Dec-2005
4     # Stefano Lacaprara <lacaprara@pd.infn.it> INFN Padova
5     #
6     # Wrapper script for crab.py
7     #
8 slacapra 1.2 if [ -z "$PYTHONPATH" ]; then
9 corvo 1.8 export PYTHONPATH=${CRABDBSAPIPYTHON}:${CRABDLSAPIPYTHON}:${CRABPSETPYTHON}:${CRABPYTHON}
10 slacapra 1.2 else
11 corvo 1.8 export PYTHONPATH=${CRABDBSAPIPYTHON}:${CRABDLSAPIPYTHON}:${CRABPSETPYTHON}:${PYTHONPATH}:${CRABPYTHON}
12 slacapra 1.2 fi
13 slacapra 1.4 #echo $PYTHONPATH
14    
15 slacapra 1.6 export LD_LIBRARY_PATH=${GLITE_LOCATION}/lib:${LD_LIBRARY_PATH}
16    
17     # echo $LD_LIBRARY_PATH
18     # ldd `which voms-proxy-info`
19 slacapra 1.4
20 spiga 1.9
21     if [ -z "$CMSSW_VERSION" ]; then
22     echo ''
23     echo 'crab Error: Could not find CMSSW environment'
24 spiga 1.11 echo ' Please before use crab setup:'
25     echo ' eval `scram runtime -c|sh` '
26 spiga 1.9 else
27 farinafa 1.10 # prepare the environment # Fabio
28     eval `python $CRABPYTHON/unfoldEnv.py $*`
29     #
30     #/usr/bin/env python $CRABPYTHON/crab.py $*
31     python $CRABPYTHON/crab.py $*
32 spiga 1.9 fi
33 farinafa 1.10