From b4cf63a52a57a3cc537c2249243b76e4ef377b8c Mon Sep 17 00:00:00 2001 From: Amir Mohammadi Date: Tue, 23 Jul 2024 10:53:52 +0200 Subject: [PATCH] fix: print path of logs file relative to cwd --- src/gridtk/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gridtk/cli.py b/src/gridtk/cli.py index d893f01..ef1f43f 100644 --- a/src/gridtk/cli.py +++ b/src/gridtk/cli.py @@ -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