Skip to content

Commit

Permalink
fix: print path of logs file relative to cwd
Browse files Browse the repository at this point in the history
  • Loading branch information
183amir committed Jul 23, 2024
1 parent 060ab66 commit b4cf63a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gridtk/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,9 +412,9 @@ def list_jobs(
table["nodes"].append(job.nodes)
table["state"].append(f"{job.state} ({job.exit_code})")
table["job-name"].append(job.name)
output = job_manager.logs_dir / job.output_files[0].resolve()
output = job.output_files[0].resolve()
try:
output = output.relative_to(job_manager.logs_dir.resolve())
output = output.relative_to(Path.cwd().resolve())
except ValueError:
pass

Expand Down

0 comments on commit b4cf63a

Please sign in to comment.