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 |
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 |
|
|