How about handling pre/post plugin scripts (right not they are only for pip installation) mapped with cfg files ?
We can maintain a list of scripts in a directory, and use them only if needed when a cfg needs it.
We need to additionally maintain a mapping of cfg to scripts, and avocado-setup.py needs to handle it.
Example:
[io_nvme]
pre = <pre_script_path/name within wrapper>
post = <post_script_path/name within wrapper>
Additionally, in future we may have profiler commands, files also added.