[Bf-python] finding correct operator poll context

Bassam Kurdali bassam at urchn.org
Fri Jun 14 22:18:41 CEST 2013


Hi folks,
when running a script recently I received the error:
RuntimeError: Operator bpy.ops.wm.quit_blender.poll() failed, context is
incorrect

Here I would like to override the context and satisfy the operator,
however:
 I don't know what is the failing check, and I don't even know where to
look.

So is there any wisdom as to finding this out?
a- for python operators,
b- for c operators ?

Is this possible to include in the operator docs, or would it be two
big?
cheers,
Bassam




More information about the Bf-python mailing list