How to call select_linked_pick from script? I want to call select_linked_pick from my script so that it behaves as if you had pressed L with the cursor hovering over part of a mesh. Problem is when I try to call it from script it doesn't appear that anything happens.

def execute(self, context):
    bpy.ops.mesh.select_linked_pick()


There is no output in the console, what am I doing wrong here?
Managed to solve this issue by simply using different operators to get the same result:

    loc = event.mouse_region_x, event.mouse_region_y

    bpy.ops.view3d.select(location=loc)
    bpy.ops.mesh.select_linked()


Found from this answer by CoDEmanX.

Seemed a lot simpler in the end than trying to retrieve the right indexes for everything to use select_linked_pick...