diff --git a/.gitignore b/.gitignore
index 29634a6bd532bb82c3a63114483ef47b51c9ed25..e132cdf1cd48a7f1185c63521b708231aa427987 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
 # Byte-compiled / optimized / DLL files
 __pycache__/
+**/__pycache__/
 *.py[cod]
 *$py.class