From 21e115189d97ea374ee77f29f0713ba9abc9e40b Mon Sep 17 00:00:00 2001 From: Philippe Faist Date: Fri, 27 Jun 2014 15:25:03 +0200 Subject: [PATCH] minor fix --- filters/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/filters/__init__.py b/filters/__init__.py index 18a9b17..5d78877 100644 --- a/filters/__init__.py +++ b/filters/__init__.py @@ -195,7 +195,9 @@ def startswithdotslash(x): return False for (root, dirs, files) in os.walk(thisdir): - if (not '__init__.py' in files): + if (not '__init__.py' in files and + not '__init__.pyc' in files and + not '__init__.pyo' in files): # skip this directory, not a python module. also skip all subdirectories. dirs[:] = [] continue