From 1c62af83b0623cdf8bf0abaf5fd19bcbf55add7e Mon Sep 17 00:00:00 2001 From: Ivan Kondov Date: Mon, 27 May 2024 14:25:15 +0200 Subject: [PATCH] replace copy_tree from distutils with copytree from shutil --- fireworks/core/rocket.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fireworks/core/rocket.py b/fireworks/core/rocket.py index a98695be3..b87bde8fc 100644 --- a/fireworks/core/rocket.py +++ b/fireworks/core/rocket.py @@ -5,7 +5,6 @@ from __future__ import annotations -import distutils.dir_util import errno import glob import json @@ -201,7 +200,7 @@ def run(self, pdb_on_exception: bool = False) -> bool: logging.INFO, f"Copying data from recovery folder {recovery_dir} to folder {launch_dir}.", ) - distutils.dir_util.copy_tree(recovery_dir, launch_dir, update=1) + shutil.copytree(recovery_dir, launch_dir, dirs_exist_ok=True) else: starting_task = 0