I have created a tree using anytree for my custom taxonomy and I am able to search the tree using:
from anytree import find
name='c'
find(root, lambda node: node.name == name)
This returns an object of Node class that looks something like this:
Node('/f/b/d')
So, for child c, d is the immediate parent and I just want to extract 'd'
and not the entire path mentioned above.
Any help would be appreciated :)