From aa4a73f62cd3b10840a5152dc4002e8d0bebbd92 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 26 Aug 2026 12:22:21 +0500 Subject: [PATCH] package-zip-archives: clean up leftovers from previous failed local run --- nix/package-zip-archives.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nix/package-zip-archives.py b/nix/package-zip-archives.py index 9942db43b5..f3b74fecbc 100644 --- a/nix/package-zip-archives.py +++ b/nix/package-zip-archives.py @@ -245,6 +245,9 @@ def package_executable( exe = exe_path.name print(f"Packaging executable '{exe}'") package_dir = ifcopenshell_install_dir / f".package-{exe}" + if package_dir.exists(): + # Clean up previous local runs. + shutil.rmtree(package_dir) package_dir.mkdir(parents=True) shutil.copy(exe_path, package_dir / exe)