From 3fe04747d7fec5af9a84a5b8e2381d82fd25ed4f Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 7 Nov 2024 13:29:28 +1100 Subject: [PATCH] narrw scope of cleanup (#8441) (#8442) Co-authored-by: Matthias Mair --- tasks.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tasks.py b/tasks.py index 35757b3e31..77d3907d53 100644 --- a/tasks.py +++ b/tasks.py @@ -1428,11 +1428,11 @@ def docs_server(c, address='localhost:8080', compile_schema=False): def clear_generated(c): """Clear generated files from `inv update`.""" # pyc/pyo files - run(c, 'find . -name "*.pyc" -exec rm -f {} +') - run(c, 'find . -name "*.pyo" -exec rm -f {} +') + run(c, 'find src -name "*.pyc" -exec rm -f {} +') + run(c, 'find src -name "*.pyo" -exec rm -f {} +') # cache folders - run(c, 'find . -name "__pycache__" -exec rm -rf {} +') + run(c, 'find src -name "__pycache__" -exec rm -rf {} +') # Generated translations - run(c, 'find . -name "django.mo" -exec rm -f {} +') - run(c, 'find . -name "messages.mo" -exec rm -f {} +') + run(c, 'find src -name "django.mo" -exec rm -f {} +') + run(c, 'find src -name "messages.mo" -exec rm -f {} +')