Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippe Faist committed Jun 27, 2014
1 parent 8acd189 commit 21e1151
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion filters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 21e1151

Please sign in to comment.