235 |
|
if self.flag_continue and options.has_key("-cfg"): |
236 |
|
del options['-cfg'] |
237 |
|
pass |
238 |
+ |
<<<<<<< multicrab.py |
239 |
+ |
|
240 |
+ |
# write crab command to be executed later... |
241 |
+ |
cmd='crab ' |
242 |
+ |
for o in options: |
243 |
+ |
if options[o]==None: |
244 |
+ |
cmd+=str(o)+' ' |
245 |
+ |
else: |
246 |
+ |
options[o] = ''.join(options[o].split()) |
247 |
+ |
cmd+=str(o)+'='+str(options[o])+' ' |
248 |
+ |
pass |
249 |
+ |
cmd+="\n" |
250 |
+ |
#print cmd |
251 |
+ |
|
252 |
+ |
runFile.write(cmd) |
253 |
+ |
|
254 |
+ |
# SL this does not work for complex, multi include pset.py |
255 |
+ |
|
256 |
+ |
# crab = Crab() |
257 |
+ |
# try: |
258 |
+ |
# crab.initialize_(options) |
259 |
+ |
# crab.run() |
260 |
+ |
# del crab |
261 |
+ |
# print 'Log file is %s%s.log'%(common.work_space.logDir(),common.prog_name) |
262 |
+ |
# print '\n############################## E N D ####################################\n' |
263 |
+ |
# except CrabException, e: |
264 |
+ |
# del crab |
265 |
+ |
# print '\n' + common.prog_name + ': ' + str(e) + '\n' |
266 |
+ |
# pass |
267 |
+ |
# pass |
268 |
+ |
# if (common.logger): common.logger.delete() |
269 |
+ |
======= |
270 |
|
|
271 |
|
# write crab command to be executed later... |
272 |
|
cmd='crab ' |
273 |
|
for o in options: |
274 |
|
if options[o]==None: options[o]="" |
275 |
< |
elif str(options[o])[0]=="-": options[o]='"\\'+str(options[o])+'"' |
244 |
< |
cmd+=str(o)+' '+str(options[o])+' ' |
275 |
> |
cmd+=str(o)+'='+str(options[o])+' ' |
276 |
|
cmd+="\n" |
277 |
|
# print cmd |
278 |
|
|
293 |
|
# pass |
294 |
|
# pass |
295 |
|
# if (common.logger): common.logger.delete() |
296 |
+ |
>>>>>>> 1.19 |
297 |
|
pass |
298 |
|
|
299 |
|
|