From 72d60e5034a1ef2313f3b4f857488ea294ab2360 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Fri, 3 Dec 2021 17:52:55 -0300 Subject: [PATCH] Added some tools to deal with Python's cache --- tools/clear_cache.sh | 1 + tools/compress_cache.sh | 2 ++ 2 files changed, 3 insertions(+) create mode 100755 tools/clear_cache.sh create mode 100755 tools/compress_cache.sh diff --git a/tools/clear_cache.sh b/tools/clear_cache.sh new file mode 100755 index 00000000..aacac0db --- /dev/null +++ b/tools/clear_cache.sh @@ -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__ diff --git a/tools/compress_cache.sh b/tools/compress_cache.sh new file mode 100755 index 00000000..58747979 --- /dev/null +++ b/tools/compress_cache.sh @@ -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__ +