Files
onshape-to-robot/onshape_to_robot/clear_cache.py
T

17 lines
350 B
Python
Raw Normal View History

"""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()