pyinvoke / invoke

Pythonic task management & command execution.
http://pyinvoke.org
BSD 2-Clause "Simplified" License
4.31k stars 365 forks source link

Load project level configuration files earlier #961

Open LuckyType opened 11 months ago

LuckyType commented 11 months ago

We've moved most of our codebase to a mono repo and have moved our tasks directory to a subdirectory.

Our project-structure looks like this:

We were hoping to use the invoke.yaml at project root with the search_root setting set to the subdirectory "tools".

Sadly this is not possible since the tasks directory must be persent at the directory of invoke execution.

Can this somehow be changed, so that the project level configuration file is loaded, before invoke is trying to load the tasks.py/tasks directory?