Addon Manager: Safer removal of macro cache

This commit is contained in:
Chris Hennes
2022-09-05 18:55:29 -05:00
parent 96dae36596
commit dcf2bc4fc9

View File

@@ -331,6 +331,7 @@ class CreateAddonListWorker(QtCore.QThread):
+ "\n"
)
try:
os.chdir(os.path.join(macro_cache_location,"..")) # Make sure we are not IN this directory
shutil.rmtree(macro_cache_location, onerror=self._remove_readonly)
self.git_manager.clone(
"https://github.com/FreeCAD/FreeCAD-macros.git",