mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 23:00:18 +00:00
Cleaning up *.py[co] and __pycache__ tip
This commit is contained in:
committed by
GitHub
parent
972405bad7
commit
1bcc6d5cc8
@@ -224,7 +224,7 @@ Removing Bytecode (.pyc) Files
|
|||||||
|
|
||||||
Here's nice trick for removing all of these files, if they already exist::
|
Here's nice trick for removing all of these files, if they already exist::
|
||||||
|
|
||||||
$ find . -name "*.pyc" -delete
|
$ find . -type f -name "*.py[co]" -delete -or -type d -name "__pycache__" -delete
|
||||||
|
|
||||||
Run that from the root directory of your project, and all ``.pyc`` files
|
Run that from the root directory of your project, and all ``.pyc`` files
|
||||||
will suddenly vanish. Much better.
|
will suddenly vanish. Much better.
|
||||||
|
|||||||
Reference in New Issue
Block a user