Skip to content

Commit 4b12e5e

Browse files
committed
Print the relpath instead
1 parent 228e3e6 commit 4b12e5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/smart_dispatch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ def main():
9393
qsub_output = check_output('{launcher} {pbs_filename}'.format(launcher=LAUNCHER if args.launcher is None else args.launcher, pbs_filename=pbs_filename), shell=True)
9494
jobs_id += [qsub_output.rstrip()]
9595

96-
with utils.open_with_lock(os.path.join(path_job, "job_ids.txt"), 'a') as jobs_id_file:
96+
with utils.open_with_lock(os.path.join(path_job, "jobs_id.txt"), 'a') as jobs_id_file:
9797
jobs_id_file.writelines("\n".join(jobs_id))
9898
print "\nJobs id: {jobs_id}".format(jobs_id=" ".join(jobs_id))
99-
print "\nLogs, command, and jobs id related to this batch will be in: {smartdispatch_folder}/{{Batch UID}}".format(smartdispatch_folder=path_job)
99+
print "\nLogs, command, and jobs id related to this batch will be in: {smartdispatch_folder}".format(smartdispatch_folder=os.path.relpath(path_job))
100100

101101

102102
def parse_arguments():

0 commit comments

Comments
 (0)