ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/crab
Revision: 1.2
Committed: Thu May 25 16:18:59 2006 UTC (18 years, 11 months ago) by slacapra
Branch: MAIN
CVS Tags: pre_cmssw_integration_20060527
Changes since 1.1: +12 -1 lines
Log Message:
set pythonpath on wrapper plus check

File Contents

# User Rev Content
1 slacapra 1.1 #!/bin/env sh
2     #
3     # 07-Dec-2005
4     # Stefano Lacaprara <lacaprara@pd.infn.it> INFN Padova
5     #
6     # Wrapper script for crab.py
7     #
8    
9 slacapra 1.2 if [ -z "$CRABDIR" ]; then
10     echo 'CRABDIR not set. Please source crab.(c)sh'
11     exit 1
12     fi
13     if [ -z "$PYTHONPATH" ]; then
14     export PYTHONPATH=${CRABDIR}/DLSAPI/:${CRABDIR}/DBSAPI:${CRABDIR}/PsetCode
15     else
16     export PYTHONPATH=${CRABDIR}/DLSAPI/:${CRABDIR}/DBSAPI:${CRABDIR}/PsetCode:$PYTHONPATH
17     fi
18    
19     #echo $PYTHONPATH
20     /bin/env python crab.py $*