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.1 by slacapra, Fri Jul 18 16:14:53 2008 UTC vs.
Revision 1.2 by slacapra, Mon Jul 21 11:11:07 2008 UTC

# Line 162 | Line 162 | class MultiCrab:
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):
# Line 192 | Line 195 | class MultiCrab:
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]

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines