Skip to content

Commit

Permalink
replace copy_tree from distutils with copytree from shutil
Browse files Browse the repository at this point in the history
  • Loading branch information
ikondov committed May 27, 2024
1 parent a5ec954 commit 1c62af8
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 1c62af8

Please sign in to comment.