How to check the pose bone have property which is driven? I hope to check whether each pose bone transform values are driven or not by bpy..
At current I check it by bone name which rig vendor set (like sholder_drv), it work for the rig but I hope to know more flexible way to check the bone property have driver or not.
Is there good way  only get pose bones which have no driven property?
(about this case, I only need to check pose transform value is driven or not)
/////////////////////////////////////
At current I could get driver path of the armatture fcurve
'''
def get_driver_list(ob, li):
    drvs = ob.animation_data.drivers
    if drvs is not None:
        for drv in drvs:
            drv_path = drv.data_path
            print(drv_path)
            li.append(drv_path)
    return False
'''

Then Current problem is, data_path type = string
so I could get path, but could not find easy way to get bone name, which include in the driver data_path.  (need strict check,,)
'pose.bones[&quot;lSmallToe4Drv&quot;].rotation_euler'
Is there good way to access bone.property by data_path.to get the bone.name correctly?
I think there should be better way, but I feel it worked for me.
import bpy
def get_driver_list(ob):
    drvs = ob.animation_data.drivers
    li = []
    if drvs is not None:
        for drv in drvs:
            drv_path = drv.data_path
            li.append(drv_path)
    return li

def get_bone_driven(ob, bn):
    flag = False
    li = get_driver_list(ob)
    bn_path = ob.pose.bones[bn].path_from_id()
    for path in li:
        if bn_path in path:
            flag = True
            print(bn_path, &quot;in&quot; , path)
            break

    return(flag)

ob = bpy.context.object

for pb in ob.pose.bones:
    if get_bone_driven(ob, pb.name):
        print(pb.name)