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.32 by ewv, Thu May 29 19:18:49 2008 UTC vs.
Revision 1.33 by spiga, Thu May 29 21:00:32 2008 UTC

# Line 44 | Line 44 | class ScriptWriter:
44              self.CMSSW_patch = int(parts[3])
45          except:
46              raise CrabException("Could not determine CMSSW version")
47 <        self.debug_pset=''
48 <        debug = cfg_params.get('USER.debug_pset',False)
49 <        if debug: self.debug_pset='--debug'
50 <
47 >        self.debug_wrapper=''
48 >        debug = cfg_params.get('USER.debug_wrapper',False)
49 >        if debug: self.debug_wrapper='--debug'
50 >
51          return
52  
53      def setAction(self, pattern, action):
# Line 214 | Line 214 | class ScriptWriter:
214          txt = "# Rewrite cfg for this job\n"
215  
216          if (self.CMSSW_major >= 2 and self.CMSSW_minor >= 1) or self.CMSSW_major > 2: #  py in,  py out for 2_1_x
217 <          txt += "echo  $RUNTIME_AREA/writeCfg.py "+str(self.debug_pset)+" pset.py pset.py\n"
218 <          txt += "python $RUNTIME_AREA/writeCfg.py "+str(self.debug_pset)+" pset.py pset.py\n"
217 >          txt += "echo  $RUNTIME_AREA/writeCfg.py "+str(self.debug_wrapper)+" pset.py pset.py\n"
218 >          txt += "python $RUNTIME_AREA/writeCfg.py "+str(self.debug_wrapper)+" pset.py pset.py\n"
219          elif self.CMSSW_major >= 2:                                                   # cfg in,  py out for 2_0_x
220 <          txt += "echo  $RUNTIME_AREA/writeCfg.py "+str(self.debug_pset)+" pset.cfg pset.py\n"
221 <          txt += "python $RUNTIME_AREA/writeCfg.py "+str(self.debug_pset)+" pset.cfg pset.py\n"
220 >          txt += "echo  $RUNTIME_AREA/writeCfg.py "+str(self.debug_wrapper)+" pset.cfg pset.py\n"
221 >          txt += "python $RUNTIME_AREA/writeCfg.py "+str(self.debug_wrapper)+" pset.cfg pset.py\n"
222          else:                                                                         # cfg in, cfg out for 1_x_y
223 <          txt += "echo  $RUNTIME_AREA/writeCfg.py "+str(self.debug_pset)+" pset.cfg pset.cfg\n"
224 <          txt += "python $RUNTIME_AREA/writeCfg.py "+str(self.debug_pset)+" pset.cfg pset.cfg\n"
223 >          txt += "echo  $RUNTIME_AREA/writeCfg.py "+str(self.debug_wrapper)+" pset.cfg pset.cfg\n"
224 >          txt += "python $RUNTIME_AREA/writeCfg.py "+str(self.debug_wrapper)+" pset.cfg pset.cfg\n"
225  
226          return txt

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines