Skip to content

Commit 091fde8

Browse files
authored
【cherry-pick】delete import distutils in pdc_utils (#2493) (#2495)
1 parent 13e74db commit 091fde8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

paddleformers/utils/pdc_sdk.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import subprocess
2020
import threading
2121
import time
22-
from distutils.dir_util import copy_tree
2322
from enum import Enum
2423
from typing import List
2524

@@ -533,7 +532,7 @@ def pdc_backup_to_flash_device(self, persistent_path: str, flash_device_path: st
533532

534533
# step 2: copy persistent data to flash device
535534
try:
536-
copy_tree(persistent_path, flash_device_path)
535+
shutil.copy_tree(persistent_path, flash_device_path)
537536
logger.info(f"backup {persistent_path} to {flash_device_path} successed.")
538537
except Exception as e:
539538
logger.error(f"[Error] [pdc_sdk] copy tree {persistent_path} to {flash_device_path} failed, error: {e}")

0 commit comments

Comments
 (0)