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 /tests/python/bl_load_py_modules.py | |
parent | 1e60ac33949ae533857fc6a48ce5fbc2402dd060 (diff) |
Tests: fix incorrect check for hidden dir
Copy-pasted mistake in tests and tools.
Diffstat (limited to 'tests/python/bl_load_py_modules.py')
-rw-r--r-- | tests/python/bl_load_py_modules.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/python/bl_load_py_modules.py b/tests/python/bl_load_py_modules.py index 2d8a908406f..39e7bd33d44 100644 --- a/tests/python/bl_load_py_modules.py +++ b/tests/python/bl_load_py_modules.py @@ -93,9 +93,8 @@ def addon_modules_sorted(): def source_list(path, filename_check=None): from os.path import join 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: filepath = join(dirpath, filename) |