Can we execute bench command from python code?

could you help to share of how to execute any bench commands from the python script?

Bench commands are just python functions. You can find them in commands folder.

If you want to invoke it from command line only then use subprocess module.

3 Likes