From 1bcc6d5cc84b5de6c2c5fccda45b0529556a7924 Mon Sep 17 00:00:00 2001 From: Robson Roberto Souza Peixoto Date: Mon, 1 Aug 2016 00:43:48 -0300 Subject: [PATCH] Cleaning up *.py[co] and __pycache__ tip --- docs/writing/gotchas.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/writing/gotchas.rst b/docs/writing/gotchas.rst index 3a4c3350a..f8e2e2377 100644 --- a/docs/writing/gotchas.rst +++ b/docs/writing/gotchas.rst @@ -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.