#NEWLINE# def nearest_child( parent_abspath , child_abspath ) : #NEWLINE# #INDENT# ' Determine the relative name of the nearest child inside of the\n    parent that contains or is the object specified by child_abspath.\n\n    Args\n    ----\n    parent_abspath : str\n        Asbolute path of the parent system.\n\n    child_abspath : str\n        Absolute path of the child variable or system.\n\n    Returns\n    -------\n    str\n        Name of the child relative to the parent.\n    ' #NEWLINE# start = ( ( len ( parent_abspath ) + 1 ) if parent_abspath else 0 ) #NEWLINE# return child_abspath [ start : ] . split ( '.' , 1 ) [ 0 ]