(func, path, exec_info)
| 48 | if os.path.isdir(target): |
| 49 | print(">> Cleaning up %s" % target) |
| 50 | def OnRmError(func, path, exec_info): |
| 51 | # This might happen on Windows |
| 52 | os.chmod(path, stat.S_IWRITE) |
| 53 | os.unlink(path) |
| 54 | shutil.rmtree(target, onerror=OnRmError) |