Skip to content

Commit

Permalink
Addon Manager: Safer removal of macro cache
Browse files Browse the repository at this point in the history
  • Loading branch information
chennes committed Sep 5, 2022
1 parent 96dae36 commit dcf2bc4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Mod/AddonManager/addonmanager_workers_startup.py
Expand Up @@ -331,6 +331,7 @@ def _update_local_git_repo(self) -> bool:
+ "\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",
Expand Down

0 comments on commit dcf2bc4

Please sign in to comment.