aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xhost/lib/deps/import_rpclib.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/host/lib/deps/import_rpclib.py b/host/lib/deps/import_rpclib.py
index ffc4bbff0..28592e6b8 100755
--- a/host/lib/deps/import_rpclib.py
+++ b/host/lib/deps/import_rpclib.py
@@ -9,7 +9,6 @@ Tool to import external dependency rpclib into UHD tree
"""
import argparse
-from distutils.dir_util import copy_tree
import os
import re
import shutil
@@ -73,7 +72,7 @@ def copy_important_files(target_root, rpclib_root):
for rpc_file in os.listdir(rpclib_root):
if rpc_file in IMPORTANT_FILES:
if os.path.isdir(os.path.join(rpclib_root, rpc_file)):
- copy_tree(
+ shutil.copytree(
os.path.join(rpclib_root, rpc_file),
os.path.join(target_root, rpc_file)
)