diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-08-23 08:36:39 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-08-23 08:36:39 +0300 |
commit | 46b9f89f5e46109ea811ccf474acb09616e7c33b (patch) | |
tree | a144ba693e5ada2691b78259b5580bfec60ab0d8 /build_files/cmake/cmake_consistency_check.py | |
parent | 1e60ac33949ae533857fc6a48ce5fbc2402dd060 (diff) |
Tests: fix incorrect check for hidden dir
Copy-pasted mistake in tests and tools.
Diffstat (limited to 'build_files/cmake/cmake_consistency_check.py')
-rwxr-xr-x | build_files/cmake/cmake_consistency_check.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/build_files/cmake/cmake_consistency_check.py b/build_files/cmake/cmake_consistency_check.py index 3d06790758a..443657532de 100755 --- a/build_files/cmake/cmake_consistency_check.py +++ b/build_files/cmake/cmake_consistency_check.py @@ -61,10 +61,8 @@ def replace_line(f, i, text, keep_indent=True): def source_list(path, filename_check=None): for dirpath, dirnames, filenames in os.walk(path): - # skip '.git' - if dirpath.startswith("."): - continue + dirnames[:] = [d for d in dirnames if not d.startswith(".")] for filename in filenames: if filename_check is None or filename_check(filename): |