Commit dc5c1bb4 authored by Jens Kroeger's avatar Jens Kroeger
Browse files

jobsub: add absolute path for config file

parent 3b7a8540
...@@ -331,7 +331,7 @@ def submitCondor(filenamebase, jobtask, subfile, runnr): ...@@ -331,7 +331,7 @@ def submitCondor(filenamebase, jobtask, subfile, runnr):
log.error("Corryvreckan executable not found in PATH!") log.error("Corryvreckan executable not found in PATH!")
exit(1) exit(1)
cmd = cmd+" arguments=\"-c "+filenamebase+".conf\"" cmd = cmd+" arguments=\"-c "+os.path.abspath(filenamebase+".conf")+"\""
# Add Condor submission configuration file: # Add Condor submission configuration file:
cmd = cmd+" "+subfile cmd = cmd+" "+subfile
...@@ -343,7 +343,7 @@ def submitCondor(filenamebase, jobtask, subfile, runnr): ...@@ -343,7 +343,7 @@ def submitCondor(filenamebase, jobtask, subfile, runnr):
log.debug ("Executing: "+cmd) log.debug ("Executing: "+cmd)
os.popen(cmd) os.popen(cmd)
except OSError, e: except OSError, e:
log.critical("Problem with NAF submission: Command '%s' resulted in error #%s, %s", cmd, e.errno, e.strerror) log.critical("Problem with HTCondor submission: Command '%s' resulted in error #%s, %s", cmd, e.errno, e.strerror)
exit(1) exit(1)
return 0 return 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment