ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/crab
Revision: 1.9
Committed: Thu Sep 13 18:04:40 2007 UTC (17 years, 7 months ago) by spiga
Branch: MAIN
CVS Tags: CRAB_2_0_1, CRAB_2_0_1_pre1, CRAB_2_0_0, CRAB_2_0_0_pre10, CRAB_2_0_0_pre9, CRAB_1_5_4, CRAB_1_5_4_pre2, CRAB_1_5_4_pre1
Changes since 1.8: +11 -1 lines
Log Message:
add check for CMSSW env at wrapper level. it allow to avoid some python problems on 64 bit machine

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     echo ' Please before use crab setup the environment following this order:'
25     echo ' 1) source /afs/cern.ch/cms/LCG/LCG-2/UI/cms_ui_env.c|sh'
26     echo ' 2) eval `scram runtime -c|sh` '
27     echo ' 3) source crab.c|sh'
28     else
29     /usr/bin/env python $CRABPYTHON/crab.py $*
30     fi