ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/ScriptWriter.py
(Generate patch)

Comparing COMP/CRAB/python/ScriptWriter.py (file contents):
Revision 1.27 by spiga, Sat May 3 17:14:17 2008 UTC vs.
Revision 1.28 by spiga, Tue May 27 13:22:53 2008 UTC

# Line 43 | Line 43 | class ScriptWriter:
43              self.CMSSW_patch = int(parts[3])
44          except:
45              raise CrabException("Could not determine CMSSW version")
46 <
46 >        self.debug_pset=''
47 >        debug = cfg_params.get('USER.debug_pset',False)
48 >        if debug: self.debug_pset='--debug'
49 >
50          return
51  
52      def setAction(self, pattern, action):
# Line 195 | Line 198 | class ScriptWriter:
198          txt = "# Rewrite cfg for this job\n"
199  
200          if (self.CMSSW_major >= 2 and self.CMSSW_minor >= 1) or self.CMSSW_major > 2: #  py in,  py out for 2_1_x
201 <          txt += "echo  $RUNTIME_AREA/writeCfg.py --debug pset.py pset.py\n"
202 <          txt += "python $RUNTIME_AREA/writeCfg.py --debug pset.py pset.py\n"
201 >          txt += "echo  $RUNTIME_AREA/writeCfg.py "+str(self.debug_pset)+" pset.py pset.py\n"
202 >          txt += "python $RUNTIME_AREA/writeCfg.py "+str(self.debug_pset)+" pset.py pset.py\n"
203          elif self.CMSSW_major >= 2:                                                   # cfg in,  py out for 2_0_x
204 <          txt += "echo  $RUNTIME_AREA/writeCfg.py --debug pset.cfg pset.py\n"
205 <          txt += "python $RUNTIME_AREA/writeCfg.py --debug pset.cfg pset.py\n"
204 >          txt += "echo  $RUNTIME_AREA/writeCfg.py "+str(self.debug_pset)+" pset.cfg pset.py\n"
205 >          txt += "python $RUNTIME_AREA/writeCfg.py "+str(self.debug_pset)+" pset.cfg pset.py\n"
206          else:                                                                         # cfg in, cfg out for 1_x_y
207 <          txt += "echo  $RUNTIME_AREA/writeCfg.py --debug pset.cfg pset.cfg\n"
208 <          txt += "python $RUNTIME_AREA/writeCfg.py --debug pset.cfg pset.cfg\n"
207 >          txt += "echo  $RUNTIME_AREA/writeCfg.py "+str(self.debug_pset)+" pset.cfg pset.cfg\n"
208 >          txt += "python $RUNTIME_AREA/writeCfg.py "+str(self.debug_pset)+" pset.cfg pset.cfg\n"
209  
210          return txt

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines