19 |
|
#convert Pset |
20 |
|
self.pyPset = os.path.basename(pset) |
21 |
|
cmd = 'EdmConfigToPython > '+common.work_space.shareDir()+self.pyPset+'py < '+ self.pset |
22 |
< |
cmd_out = runCommand(cmd) |
23 |
< |
if cmd_out != '': |
24 |
< |
msg = 'Could not convert Pset.cfg into python Dictionary \n' |
22 |
> |
exit_code = os.system(cmd) |
23 |
> |
if exit_code != 0 : |
24 |
> |
msg = 'Could not convert '+self.pset+' into a python Dictionary \n' |
25 |
|
msg1= ' Did you do eval `scramv1 runtime ...` from your CMSSW working area ?' |
26 |
|
raise CrabException(msg+msg1) |
27 |
|
pass |