# | 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 ': |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |