I am running a python expression through blender from the commandline. I want to know if the python expression is executed correctly or not. But Blender always exits with a 0 code. Is there any way to make it exit with the same code as the python expression?
For example I would expect the following command exit with a non-zero code:
"\Program Files\blender foundation\blender\blender.exe" --background --python-expr "2/0"