diff options
author | Aaron Rossetto <aaron.rossetto@ni.com> | 2022-01-06 13:22:58 -0600 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2022-01-14 14:36:39 -0600 |
commit | 1716a31e739ff9057e94a458b0b0329263aa6b13 (patch) | |
tree | 93b11f4d4c0f08fbfe89c5d8aa4b9d94d5457b1f /host/lib | |
parent | c69c7626c272be7b38e90ed933b8bea80f4c069b (diff) | |
download | uhd-1716a31e739ff9057e94a458b0b0329263aa6b13.tar.gz uhd-1716a31e739ff9057e94a458b0b0329263aa6b13.tar.bz2 uhd-1716a31e739ff9057e94a458b0b0329263aa6b13.zip |
deps: rpclib: Replace distutils.dir_util with shutil
This commit replaces the use of distutils.dir_util.copy_tree() with the
equivalent function shutil.copytree().
Diffstat (limited to 'host/lib')
-rwxr-xr-x | host/lib/deps/import_rpclib.py | 3 |
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) ) |