How to use Custom Module in sub directory of library folder (git submodule)

Hi,

I would like to use git submodules to import custom modules into my roles. However, I am having difficulties in getting Ansible to find my nested module.

In this issue on https://github.com/ansible/ansible/issues/16561#event-2428527915 bcoca suggests using an init.py file but I am having no luck.

├── library
│ └── validate_schema
│ ├── README.md
│ ├── init.py
│ └── validate_schema.py

Anyone done something similar?

Cheers,
Jacob

the __init__.py has to exist in library/, its following a python
import path, so it needs that in each 'intermediate' directory from
the expected root