I am trying to scale a mesh via Python similar to how it would be done in Blender itself.
Basically: The Transform Orientation is Global and Pivot Point set to 3D Cursor. Then Select the object. Go into Edit mode. Press A to select all verts. Press S and enter value and press Enter to have it scaled the way I want.
When I try this via the Python console or in a script it always seems to scale as if Pivot Point is set to Active Element/Median Point - can not really tell which but certainly not 3D Cursor.
I've tried this in the Python console for example expecting it to scale relative to cursor but it did not work like that. The mesh was selected and in Edit Mode to test this. Also tried without the context override with same results.
view3d = next(area for area in bpy.context.screen.areas if area.type == 'VIEW_3D')
bpy.context.scene.tool_settings.transform_pivot_point = "CURSOR"