Skip to content
Snippets Groups Projects
Commit 33142d42 authored by Thomas Kluyver's avatar Thomas Kluyver
Browse files

Merge branch 'shutil-move-str' into 'master'

Pass str, not Path, to shutil.move() for now

Closes #60

See merge request detectors/pycalibration!675
parents a68fb967 c74fca49
No related branches found
No related tags found
1 merge request!675Pass str, not Path, to shutil.move() for now
...@@ -441,7 +441,7 @@ def finalize(joblist, finaljob, run_path, out_path, version, title, author, repo ...@@ -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}" slurm_archive_dir = Path(out_path) / f"slurm_out_{run_path.name}"
print(f"Moving temporary files to final location: {slurm_archive_dir}") 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" md_path = slurm_archive_dir / "calibration_metadata.yml"
# Notebooks should have a karabo_id parameter, which we'll use to make a # Notebooks should have a karabo_id parameter, which we'll use to make a
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment