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): |
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 |