Skip to content

Commit

Permalink
fix win dir creation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jraymakers committed Jun 23, 2024
1 parent 0a79514 commit a7ec974
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion generate-wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,11 @@ def get_lib_file_name():
zip.extract(lib_file_name, ext_tmp)

extracted_lib_file_path = os.path.join(ext_tmp, lib_file_name)
target_lib_file_path = os.path.join("lib", "binding", "libduckdb")
target_lib_dir = os.path.join("lib", "binding")
target_lib_file_path = os.path.join(target_lib_dir, "libduckdb")

print("Copying lib to " + target_lib_file_path)
os.makedirs(target_lib_dir, exist_ok=True)
shutil.copyfile(extracted_lib_file_path, target_lib_file_path)

print("Extracting duckdb.h to src")
Expand Down

0 comments on commit a7ec974

Please sign in to comment.