import ntpath


def path_leaf(path):
    """
    Returns the parent path, and the childname
    given an absolute path.
    """
    head, tail = ntpath.split(path)
    return tail or ntpath.basename(head)