More fixes for running from anywhere.
util/pbs/send.py: always access the job directory via full path --HG-- extra : convert_revision : 1792aadb39428e7c91953ac58f6da212b7f92835
This commit is contained in:
parent
b46baf107f
commit
7fed053beb
1 changed files with 6 additions and 5 deletions
|
@ -131,21 +131,22 @@ if listonly:
|
||||||
if not onlyecho:
|
if not onlyecho:
|
||||||
jl = []
|
jl = []
|
||||||
for jobname in joblist:
|
for jobname in joblist:
|
||||||
|
jobdir = joinpath(rootdir, jobname)
|
||||||
if os.path.exists(jobname):
|
if os.path.exists(jobname):
|
||||||
if not force:
|
if not force:
|
||||||
if os.path.isfile(joinpath(jobname, '.success')):
|
if os.path.isfile(joinpath(jobdir, '.success')):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if os.path.isfile(joinpath(jobname, '.start')) and \
|
if os.path.isfile(joinpath(jobdir, '.start')) and \
|
||||||
not os.path.isfile(joinpath(jobname, '.stop')):
|
not os.path.isfile(joinpath(jobdir, '.stop')):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if not clean:
|
if not clean:
|
||||||
sys.exit('job directory not clean!')
|
sys.exit('job directory not clean!')
|
||||||
|
|
||||||
job.cleandir(jobname)
|
job.cleandir(jobdir)
|
||||||
else:
|
else:
|
||||||
os.mkdir(jobname)
|
os.mkdir(jobdir)
|
||||||
jl.append(jobname)
|
jl.append(jobname)
|
||||||
joblist = jl
|
joblist = jl
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue