I was able to get the path to display by modifying the script. I added an additional frame.change.post.append handler that temporarily disables the auto rotate handler, clears the path, recalculates it, then updates visible paths when you move to frame 1 in the timeline.
def my_handler(scene):
global reset
if scene.frame_current == 1 and reset==False:
fn_remove = next((fn for fn in bpy.app.handlers.frame_change_post if fn.__name__ == auto_rotate_frame.__name__), None)
if fn_remove:
bpy.app.handlers.frame_change_post.remove(fn_remove)
bpy.ops.pose.paths_clear()
bpy.ops.pose.paths_calculate()
bpy.ops.object.paths_update_visible()
print(“Path set”)
reset=True