Skip dot files

pull/12/head
Alexandre Dulaunoy 2016-04-26 16:36:26 +02:00
parent 56f63ce922
commit b5c113fe4c
1 changed files with 2 additions and 0 deletions

View File

@ -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