Tests: fix incorrect check for hidden dir

Copy-pasted mistake in tests and tools.
This commit is contained in:
Campbell Barton
2017-08-23 15:36:39 +10:00
parent 1e60ac3394
commit 46b9f89f5e
6 changed files with 11 additions and 22 deletions

View File

@@ -53,10 +53,8 @@ def is_source_any(filename):
def source_list(path, filename_check=None):
for dirpath, dirnames, filenames in os.walk(path):
# skip '.svn'
if dirpath.startswith("."):
continue
# skip '.git'
dirnames[:] = [d for d in dirnames if not d.startswith(".")]
for filename in filenames:
if filename_check is None or filename_check(filename):