162 |
|
|
163 |
|
self.cfg=cfg_common['cfg'] |
164 |
|
|
165 |
+ |
# read crab.cfg file and search for storage_path |
166 |
+ |
cfg_params = loadConfig(self.cfg,{}) |
167 |
+ |
self.storage_path = cfg_params.get("USER.storage_path",None) |
168 |
|
return |
169 |
|
|
170 |
|
def loadMultiConfig(self, file): |
195 |
|
for opt in self.cfg_params_dataset[sec]: |
196 |
|
tmp="-"+string.upper(opt.split(".")[0])+"."+opt.split(".")[1] |
197 |
|
options[tmp]=self.cfg_params_dataset[sec][opt] |
198 |
+ |
# add section to storage_path if exist in crab.cfg |
199 |
+ |
if self.storage_path: |
200 |
+ |
options["-USER.storage_path"]=self.storage_path+"/"+sec |
201 |
|
# Input options (command) |
202 |
|
for opt in self.opts: |
203 |
|
options[opt]=self.opts[opt] |