Skip to content

Commit

Permalink
try fix win copy
Browse files Browse the repository at this point in the history
  • Loading branch information
jraymakers committed Jun 23, 2024
1 parent 2cd9bd5 commit a45cb42
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions generate-wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,6 @@ def get_lib_file_name():
raise Exception("Unsupported system: " + system)

if __name__ == "__main__":
# dir_path = os.path.dirname(os.path.realpath(__file__))

with tempfile.TemporaryDirectory() as zip_tmp:
zip_path = os.path.join(zip_tmp, "libduckdb.zip")

Expand All @@ -262,7 +260,7 @@ def get_lib_file_name():
target_lib_file_path = os.path.join("lib", "binding", "libduckdb")

print("Copying lib to " + target_lib_file_path)
shutil.copy(extracted_lib_file_path, target_lib_file_path)
shutil.copyfile(extracted_lib_file_path, target_lib_file_path)

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

0 comments on commit a45cb42

Please sign in to comment.