More fixes for running from anywhere.
authorNathan Binkert <binkertn@umich.edu>
Wed, 9 Feb 2005 23:12:39 +0000 (18:12 -0500)
committerNathan Binkert <binkertn@umich.edu>
Wed, 9 Feb 2005 23:12:39 +0000 (18:12 -0500)
util/pbs/send.py:
    always access the job directory via full path

--HG--
extra : convert_revision : 1792aadb39428e7c91953ac58f6da212b7f92835

util/pbs/send.py

index 1f174b1f8546ed75eecdf26039d793f3ab819c44..3741b869666b40225733dbe8f5f65ed1e73461cd 100755 (executable)
@@ -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