Skip to content

Commit b65afd4

Browse files
attempt to use uniform java library location under bin #7406
1 parent 5413018 commit b65afd4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/mk_win_dist_cmake.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -376,9 +376,10 @@ def cp_into_bin(arch):
376376
shutil.rmtree(lib_dir)
377377
if JAVA_ENABLED:
378378
java_dir = get_java_dist_path(arch)
379-
shutil.copytree(java_dir,
380-
bin_dir,
381-
dirs_exist_ok=True)
379+
for file in os.listdir(java_dir):
380+
src_path = os.path.join(java_dir, file)
381+
dst_path = os.path.join(bin_dir, file)
382+
shutil.copy2(src_path, dst_path)
382383
shutil.rmtree(java_dir)
383384

384385
def cp_pdb(arch):

0 commit comments

Comments
 (0)