mirror of https://github.com/MISP/misp-modules
Skip dot files
parent
56f63ce922
commit
b5c113fe4c
|
@ -68,6 +68,8 @@ def load_modules(mod_dir):
|
||||||
for root, dirnames, filenames in os.walk(mod_dir):
|
for root, dirnames, filenames in os.walk(mod_dir):
|
||||||
if os.path.basename(root) == '__pycache__':
|
if os.path.basename(root) == '__pycache__':
|
||||||
continue
|
continue
|
||||||
|
if os.path.basename(root).startswith("."):
|
||||||
|
continue
|
||||||
for filename in fnmatch.filter(filenames, '*.py'):
|
for filename in fnmatch.filter(filenames, '*.py'):
|
||||||
if filename == '__init__.py':
|
if filename == '__init__.py':
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue