Skip to content

Commit

Permalink
Merge pull request #533 from ikondov/distutils_removal
Browse files Browse the repository at this point in the history
Replace copy_tree from distutils with copytree from shutil
  • Loading branch information
computron authored Jun 28, 2024
2 parents be56340 + 1c62af8 commit 805a239
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fireworks/core/rocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

from __future__ import annotations

import distutils.dir_util
import errno
import glob
import json
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 805a239

Please sign in to comment.