Find a way to organize commands in folders
johhnry opened this issue · 1 comments
johhnry commented
We need to find a way to organize commands in folders without changing all the .yml action files command paths.
This would be possible by:
-
Recursively searching for python commands and match that name with
silex_client.commands.xxxx.XXXX
and importlib.import_module that path -
Maybe having only one depth level of folders and using relative imports as described here: https://stackoverflow.com/questions/10675054/how-to-import-a-module-in-python-with-importlib-import-module
johhnry commented
A simple way is simply to put commands in modules like:
path: "silex_client.commands.farm.blender_render_tasks.BlenderRenderTasksCommand"
but it makes long paths