Skip to content

Commit 96fda54

Browse files
authored
Merge pull request #735 from robsonpeixoto/patch-1
Cleaning up *.py[co] and __pycache__ tip
2 parents b81aa84 + 1bcc6d5 commit 96fda54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/writing/gotchas.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ Removing Bytecode (.pyc) Files
224224

225225
Here's nice trick for removing all of these files, if they already exist::
226226

227-
$ find . -name "*.pyc" -delete
227+
$ find . -type f -name "*.py[co]" -delete -or -type d -name "__pycache__" -delete
228228

229229
Run that from the root directory of your project, and all ``.pyc`` files
230230
will suddenly vanish. Much better.

0 commit comments

Comments
 (0)