From 581f7c5380525a5870d146fc692d87ee6f6bc074 Mon Sep 17 00:00:00 2001 From: Justin Myers Date: Sun, 3 Mar 2024 13:55:05 -0800 Subject: [PATCH] Fix py build not using created temp file --- circuitpython_build_tools/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circuitpython_build_tools/build.py b/circuitpython_build_tools/build.py index 0fc240f..1728247 100644 --- a/circuitpython_build_tools/build.py +++ b/circuitpython_build_tools/build.py @@ -311,7 +311,7 @@ def library(library_path, output_directory, package_folder_prefix, if mpy_success != 0: raise RuntimeError("mpy-cross failed on", full_path) else: - shutil.copyfile(full_path, output_file) + shutil.copyfile(temp_file_name, output_file) finally: os.remove(temp_file_name) else: