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

Comparing COMP/CRAB/python/multicrab.py (file contents):
Revision 1.16 by slacapra, Wed Nov 11 16:36:41 2009 UTC vs.
Revision 1.22.2.1 by spiga, Thu Apr 15 08:19:43 2010 UTC

# Line 216 | Line 216 | class MultiCrab:
216                  
217                  options[tmp]=self.cfg_params_dataset[sec][opt]
218  
219 +            # protect against no user_remote_dir
220 +            self.user_remote_dir =self.cfg_params_dataset[sec].get("user.user_remote_dir",None)
221 +            if not self.user_remote_dir:
222 +                self.user_remote_dir = "./"
223              # add section to storage_path if exist in crab.cfg
224              if not self.cfg_params_dataset.has_key("USER.user_remote_dir") and self.user_remote_dir:
225                  options["-USER.user_remote_dir"]=self.user_remote_dir+"/"+sec
# Line 239 | Line 243 | class MultiCrab:
243              # write crab command to be executed later...
244              cmd='crab '
245              for o in options:
246 <                cmd+=str(o)+" "+str(options[o])+" "
246 >                if options[o]==None:
247 >                    cmd+=str(o)+' '
248 >                else:
249 >                    options[o] = ''.join(options[o].split())
250 >                    cmd+=str(o)+'='+str(options[o])+' '
251 >                pass
252              cmd+="\n"
253 <            # print cmd
253 >            #print cmd
254  
255              runFile.write(cmd)
256  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines