Build: Don't remove dir with os.remove use rmdir instead.

part of CURA-12229
This commit is contained in:
Remco Burema 2024-10-30 15:49:02 +01:00
parent 2aed655c8b
commit cd2e4220f0

View file

@ -264,7 +264,7 @@ class CuraConan(ConanFile):
os.remove(file) os.remove(file)
print(f"deleted file: {file}") print(f"deleted file: {file}")
for dir_ in to_remove_dirs: for dir_ in to_remove_dirs:
os.remove(dir_) rmdir(self, dir_)
print(f"deleted dir_: {dir_}") print(f"deleted dir_: {dir_}")
def _generate_pyinstaller_spec(self, location, entrypoint_location, icon_path, entitlements_file): def _generate_pyinstaller_spec(self, location, entrypoint_location, icon_path, entitlements_file):