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.18 by slacapra, Mon Nov 16 16:16:17 2009 UTC vs.
Revision 1.22 by slacapra, Mon Jan 11 12:00:20 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 +            if not self.user_remote_dir:
221 +                self.user_remote_dir = "./"
222              # add section to storage_path if exist in crab.cfg
223              if not self.cfg_params_dataset.has_key("USER.user_remote_dir") and self.user_remote_dir:
224                  options["-USER.user_remote_dir"]=self.user_remote_dir+"/"+sec
# Line 239 | Line 242 | class MultiCrab:
242              # write crab command to be executed later...
243              cmd='crab '
244              for o in options:
245 <                if options[o]==None: options[o]=""
246 <                elif str(options[o])[0]=="-": options[o]='"\\'+str(options[o])+'"'
247 <                cmd+=str(o)+' '+str(options[o])+' '
245 >                if options[o]==None:
246 >                    cmd+=str(o)+' '
247 >                else:
248 >                    options[o] = ''.join(options[o].split())
249 >                    cmd+=str(o)+'='+str(options[o])+' '
250 >                pass
251              cmd+="\n"
252 <            # print cmd
252 >            #print cmd
253  
254              runFile.write(cmd)
255  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines