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