mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 14:50:19 +00:00
Merge pull request #735 from robsonpeixoto/patch-1
Cleaning up *.py[co] and __pycache__ tip
This commit is contained in:
@@ -224,7 +224,7 @@ Removing Bytecode (.pyc) Files
|
||||
|
||||
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
|
||||
will suddenly vanish. Much better.
|
||||
|
||||
Reference in New Issue
Block a user