custom module and connection local and python dependencies

Hello All;

Is it possible to execute a custom task locally by setting connection: local and be able to load its python-module dependencies? I’m trying to maximize usability.

I attempted to added my python modules to the PYTHONPATH but the custom-module doesn’t not complain about loading my python-modules but does return a MODULE FAILURE.

Thanks