From c74fca4944d958b99fbcce0859d10241d86410df Mon Sep 17 00:00:00 2001 From: Thomas Kluyver <thomas@kluyver.me.uk> Date: Fri, 13 May 2022 10:14:22 +0100 Subject: [PATCH] Pass str, not Path, to shutil.move() for now --- src/xfel_calibrate/finalize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xfel_calibrate/finalize.py b/src/xfel_calibrate/finalize.py index a6d0eeb25..88f264af0 100644 --- a/src/xfel_calibrate/finalize.py +++ b/src/xfel_calibrate/finalize.py @@ -441,7 +441,7 @@ def finalize(joblist, finaljob, run_path, out_path, version, title, author, repo slurm_archive_dir = Path(out_path) / f"slurm_out_{run_path.name}" print(f"Moving temporary files to final location: {slurm_archive_dir}") - move(run_path, slurm_archive_dir) + move(str(run_path), str(slurm_archive_dir)) # Needs str until Python 3.9 md_path = slurm_archive_dir / "calibration_metadata.yml" # Notebooks should have a karabo_id parameter, which we'll use to make a -- GitLab