Added some tools to deal with Python's cache

This commit is contained in:
Salvador E. Tropea 2021-12-03 17:52:55 -03:00
parent 50783087a1
commit 72d60e5034
2 changed files with 3 additions and 0 deletions

1
tools/clear_cache.sh Executable file
View File

@ -0,0 +1 @@
rm -r ./kibot/bom/__pycache__ ./kibot/kicad/__pycache__ ./kibot/mcpyrate/__pycache__ ./kibot/__pycache__ ./tests/.config/kiplot/plugins/__pycache__ ./tests/.config/kibot/plugins/__pycache__ ./tests/utils/__pycache__ ./tests/test_plot/fake_pcbnew/__pycache__ ./tests/test_plot/__pycache__ ./tests/__pycache__

2
tools/compress_cache.sh Executable file
View File

@ -0,0 +1,2 @@
tar Jcvf cache.tar.xz ./kibot/bom/__pycache__ ./kibot/kicad/__pycache__ ./kibot/mcpyrate/__pycache__ ./kibot/__pycache__ ./tests/.config/kiplot/plugins/__pycache__ ./tests/.config/kibot/plugins/__pycache__ ./tests/utils/__pycache__ ./tests/test_plot/fake_pcbnew/__pycache__ ./tests/test_plot/__pycache__ ./tests/__pycache__