Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion galaxy_importer/finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ def _find_plugins(self, content_type, content_dir):
"""Find all python files anywhere inside content_dir."""
for path, _, files in os.walk(content_dir):
for file in files:
if not file.endswith(".py") or file == "__init__.py":
if file == "__init__.py" or not (
file.endswith(".py") or file.endswith(".yaml") or
file.endswith(".yml")
):
continue
file_path = os.path.join(path, file)
rel_path = os.path.relpath(file_path, self.path)
Expand Down