ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CRAB/python/ScriptWriter.py
(Generate patch)

Comparing COMP/CRAB/python/ScriptWriter.py (file contents):
Revision 1.36 by spiga, Sun Sep 21 10:33:22 2008 UTC vs.
Revision 1.37 by spiga, Thu Sep 25 11:50:05 2008 UTC

# Line 47 | Line 47 | class ScriptWriter:
47          self.debug_wrapper=''
48          debug = cfg_params.get('USER.debug_wrapper',False)
49          if debug: self.debug_wrapper='--debug'
50 <
50 >
51 >        self.scriptName = cfg_params.get('CRAB.jobtype').upper()+'.sh'  
52 >
53          return
54  
55      def setAction(self, pattern, action):
# Line 60 | Line 62 | class ScriptWriter:
62          """
63  
64          tpl = open(self.template, 'r')
65 <        script = open(common._db.queryTask('scriptName'),'w')
65 >        script = open(common.work_space.jobDir()+self.scriptName,'w')
66  
67          for line in tpl:
68              if len(line) > 6 and line[:6] == '#CRAB ':

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines