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