95 Copy all .so files found in src_dir to the target_dir
96 If subdir is provided copy from src_dir/subdir to target_dir/subdir
98 if subdir
is not None:
99 src_dir = os.path.join(src_dir, subdir)
100 target_dir = os.path.join(target_dir, subdir)
102 os.makedirs(target_dir, exist_ok=
True)
104 for file
in filter(
lambda file: file.endswith(
".so"), os.listdir(src_dir)):
105 src_path = os.path.join(src_dir, file)
106 tgt_path = os.path.join(target_dir, file)
107 shutil.copy(src_path, tgt_path)
108 print(f
" |> Copied {src_path} to {tgt_path}")