2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 11:36:44 +00:00

narrw scope of cleanup (#8441)

This commit is contained in:
Matthias Mair 2024-11-07 01:20:51 +01:00 committed by GitHub
parent c062d5e48d
commit fade7e3d04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1443,14 +1443,14 @@ def docs_server(c, address='localhost:8080', compile_schema=False):
def clear_generated(c): def clear_generated(c):
"""Clear generated files from `invoke update`.""" """Clear generated files from `invoke update`."""
# pyc/pyo files # pyc/pyo files
run(c, 'find . -name "*.pyc" -exec rm -f {} +') run(c, 'find src -name "*.pyc" -exec rm -f {} +')
run(c, 'find . -name "*.pyo" -exec rm -f {} +') run(c, 'find src -name "*.pyo" -exec rm -f {} +')
# cache folders # cache folders
run(c, 'find . -name "__pycache__" -exec rm -rf {} +') run(c, 'find src -name "__pycache__" -exec rm -rf {} +')
# Generated translations # Generated translations
run(c, 'find . -name "django.mo" -exec rm -f {} +') run(c, 'find src -name "django.mo" -exec rm -f {} +')
run(c, 'find . -name "messages.mo" -exec rm -f {} +') run(c, 'find src -name "messages.mo" -exec rm -f {} +')
# Collection sorting # Collection sorting