diff --git a/da/tools/initexit.py b/da/tools/initexit.py index 110cfddb35b53153a4eb30c648dd2350958b892c..cf65a06cb5eecb2b20a40afedddcbf08296e4bdc 100755 --- a/da/tools/initexit.py +++ b/da/tools/initexit.py @@ -514,7 +514,7 @@ class CycleControl(dict): jobparams = {'jobname':'das','jobaccount':'co2','jobnodes':'nserial 1','jobtime':'06:00:00','jobshell':'/bin/sh'} template = DaPlatForm.GetJobTemplate(jobparams) template += 'cd %s\n'%os.getcwd() - template += './das.py rc=%s'% self['da.restart.fname'] + template += '%s rc=%s'% (sys.argv[0], self['da.restart.fname'], ) ) cd = self['time.end'].strftime('%Y%m%d') jobfile = DaPlatForm.WriteJob(self,template,'cycle.%s.das'%cd) @@ -543,7 +543,7 @@ class CycleControl(dict): jobparams = {'jobname':'das.%s'%stepname} template = DaPlatForm.GetJobTemplate(jobparams) template += 'cd %s\n'%os.getcwd() - template += './das.py rc=%s process=%s %s' % (self['jobrcfilename'],stepname,join(self.opts,''),) + template += '%s rc=%s process=%s %s' % (sys.argv[0],self['jobrcfilename'],stepname,join(self.opts,''),) jobfile = DaPlatForm.WriteJob(self,template,stepname) jobid = DaPlatForm.SubmitJob(jobfile)