Upstream: https://github.com/Rhoban/onshape-to-robot Upstream-Commit: 80e710700aac9573a2230f74f7ce9e094833a0bc Upstream-Branch: master
17 lines
350 B
Python
17 lines
350 B
Python
"""Clear the onshape-to-robot cache."""
|
|
|
|
|
|
def main():
|
|
import shutil
|
|
|
|
from .onshape_api.cache import get_cache_path
|
|
|
|
"""Clear the onshape-to-robot cache."""
|
|
cache_dir = get_cache_path()
|
|
print("Removing cache directory: {}".format(cache_dir))
|
|
shutil.rmtree(cache_dir, ignore_errors=True)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|