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

Comparing COMP/CRAB/python/PsetManipulator.py (file contents):
Revision 1.8 by slacapra, Wed Jan 17 18:17:58 2007 UTC vs.
Revision 1.9 by gutsche, Mon Feb 12 22:57:16 2007 UTC

# Line 19 | Line 19 | class PsetManipulator:
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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines