From b5c113fe4c1d2ffc2141ddc70168344c2208d6ca Mon Sep 17 00:00:00 2001 From: Alexandre Dulaunoy Date: Tue, 26 Apr 2016 16:36:26 +0200 Subject: [PATCH] Skip dot files --- bin/misp-modules.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/misp-modules.py b/bin/misp-modules.py index 6cff996..c9ae4b9 100755 --- a/bin/misp-modules.py +++ b/bin/misp-modules.py @@ -68,6 +68,8 @@ def load_modules(mod_dir): for root, dirnames, filenames in os.walk(mod_dir): if os.path.basename(root) == '__pycache__': continue + if os.path.basename(root).startswith("."): + continue for filename in fnmatch.filter(filenames, '*.py'): if filename == '__init__.py': continue