mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-30 08:33:10 +00:00
package-zip-archives: clean up leftovers from previous failed local run
This commit is contained in:
@@ -245,6 +245,9 @@ def package_executable(
|
|||||||
exe = exe_path.name
|
exe = exe_path.name
|
||||||
print(f"Packaging executable '{exe}'")
|
print(f"Packaging executable '{exe}'")
|
||||||
package_dir = ifcopenshell_install_dir / f".package-{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)
|
package_dir.mkdir(parents=True)
|
||||||
|
|
||||||
shutil.copy(exe_path, package_dir / exe)
|
shutil.copy(exe_path, package_dir / exe)
|
||||||
|
|||||||
Reference in New Issue
Block a user