diff options
author | Nathan Binkert <binkertn@umich.edu> | 2005-02-09 18:12:39 -0500 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2005-02-09 18:12:39 -0500 |
commit | 7fed053bebc49d0f3dc10995360f78be191ca39b (patch) | |
tree | 136ca7ad8f6ffbea3f73d7b47f34aa2a7b136ea9 /util | |
parent | b46baf107fb88c7b0e80664a9f9951aeaa6ba249 (diff) | |
download | gem5-7fed053bebc49d0f3dc10995360f78be191ca39b.tar.xz |
More fixes for running from anywhere.
util/pbs/send.py:
always access the job directory via full path
--HG--
extra : convert_revision : 1792aadb39428e7c91953ac58f6da212b7f92835
Diffstat (limited to 'util')
-rwxr-xr-x | util/pbs/send.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/util/pbs/send.py b/util/pbs/send.py index 1f174b1f8..3741b8696 100755 --- a/util/pbs/send.py +++ b/util/pbs/send.py @@ -131,21 +131,22 @@ if listonly: if not onlyecho: jl = [] for jobname in joblist: + jobdir = joinpath(rootdir, jobname) if os.path.exists(jobname): if not force: - if os.path.isfile(joinpath(jobname, '.success')): + if os.path.isfile(joinpath(jobdir, '.success')): continue - if os.path.isfile(joinpath(jobname, '.start')) and \ - not os.path.isfile(joinpath(jobname, '.stop')): + if os.path.isfile(joinpath(jobdir, '.start')) and \ + not os.path.isfile(joinpath(jobdir, '.stop')): continue if not clean: sys.exit('job directory not clean!') - job.cleandir(jobname) + job.cleandir(jobdir) else: - os.mkdir(jobname) + os.mkdir(jobdir) jl.append(jobname) joblist = jl |